Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soft deletes use deleted_at #2051

Merged
merged 19 commits into from
Jun 12, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions user_guide_src/source/models/model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ can maintain a "recycle bin" of objects that can be restored, or even simply pre
part of a security trail. If true, the find* methods will only return non-deleted rows, unless
the withDeleted() method is called prior to calling the find* method.

This requires a DATETIME field to be present in the table for storing state. The default field
name is ``deleted_at`` however this name can be configured to any name of your choice by using
$deletedField property.
This requires requires either a DATETIME or INTEGER field in the database as per the model's
MGatner marked this conversation as resolved.
Show resolved Hide resolved
$dateFormat setting. The default field name is ``deleted_at`` however this name can be
configured to any name of your choice by using $deletedField property.

**$allowedFields**

Expand Down