File tree Expand file tree Collapse file tree
user_guide_src/source/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,6 +157,14 @@ and updates. If true, will set the current time in the format specified by ``$da
157157requires that the table have columns named **created_at ** and **updated_at ** in the appropriate
158158data type.
159159
160+ $dateFormat
161+ -----------
162+
163+ This value works with ``$useTimestamps `` and ``$useSoftDeletes `` to ensure that the correct type of
164+ date value gets inserted into the database. By default, this creates DATETIME values, but
165+ valid options are: ``'datetime' ``, ``'date' ``, or ``'int' `` (a PHP timestamp). Using **useSoftDeletes ** or
166+ useTimestamps with an invalid or missing dateFormat will cause an exception.
167+
160168$createdField
161169-------------
162170
@@ -169,13 +177,7 @@ $updatedField
169177Specifies which database field should use for keep data record update timestamp.
170178Leave it empty to avoid update it (even ``$useTimestamps `` is enabled).
171179
172- $dateFormat
173- -----------
174180
175- This value works with ``$useTimestamps `` and ``$useSoftDeletes `` to ensure that the correct type of
176- date value gets inserted into the database. By default, this creates DATETIME values, but
177- valid options are: ``'datetime' ``, ``'date' ``, or ``'int' `` (a PHP timestamp). Using **useSoftDeletes ** or
178- useTimestamps with an invalid or missing dateFormat will cause an exception.
179181
180182$validationRules
181183----------------
You can’t perform that action at this time.
0 commit comments