Skip to content

Commit f5d2614

Browse files
authored
Note dateFormat dependency
1 parent a3e5db3 commit f5d2614

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

user_guide_src/source/models/model.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ Leave it empty to avoid update it (even useTimestamps is enabled)
174174

175175
**$dateFormat**
176176

177-
This value works with $useTimestamps to ensure that the correct type of date value gets
178-
inserted into the database. By default, this creates DATETIME values, but valid options
179-
are: datetime, date, or int (a PHP timestamp).
177+
This value works with $useTimestamps and $useSoftDeletes to ensure that the correct type of
178+
date value gets inserted into the database. By default, this creates DATETIME values, but
179+
valid options are: datetime, date, or int (a PHP timestamp). Using 'useSoftDeletes' or
180+
'useTimestamps' with an invalid or missing dateFormat will cause an exception.
180181

181182
**$validationRules**
182183

0 commit comments

Comments
 (0)