Skip to content

Commit d0df68a

Browse files
authored
Add INT option for deleted_at
1 parent 7830843 commit d0df68a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_guide_src/source/models/model.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ can maintain a "recycle bin" of objects that can be restored, or even simply pre
144144
part of a security trail. If true, the find* methods will only return non-deleted rows, unless
145145
the withDeleted() method is called prior to calling the find* method.
146146

147-
This requires a DATETIME field to be present in the table for storing state. The default field
148-
name is ``deleted_at`` however this name can be configured to any name of your choice by using
149-
$deletedField property.
147+
This requires requires either a DATETIME or INTEGER field in the database as per the model's
148+
$dateFormat setting. The default field name is ``deleted_at`` however this name can be
149+
configured to any name of your choice by using $deletedField property.
150150

151151
**$allowedFields**
152152

0 commit comments

Comments
 (0)