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 @@ -166,7 +166,7 @@ $useTimestamps
166166This boolean value determines whether the current date is automatically added to all inserts
167167and updates. If ``true ``, will set the current time in the format specified by `$dateFormat `_. This
168168requires that the table have columns named **created_at **, **updated_at ** and **deleted_at ** in the appropriate
169- data type.
169+ data type. See also ` $createdField `_, ` $updatedField `_, and ` $deletedField `_.
170170
171171$dateFormat
172172^^^^^^^^^^^
@@ -238,7 +238,7 @@ Callbacks
238238$allowCallbacks
239239^^^^^^^^^^^^^^^
240240
241- Whether the callbacks defined below should be used.
241+ Whether the callbacks defined below should be used. See :ref: ` model-events `.
242242
243243$beforeInsert
244244^^^^^^^^^^^^^
@@ -266,7 +266,7 @@ $afterUpdateBatch
266266^^^^^^^^^^^^^^^^^
267267
268268These arrays allow you to specify callback methods that will be run on the data at the
269- time specified in the property name.
269+ time specified in the property name. See :ref: ` model-events `.
270270
271271Working with Data
272272*****************
@@ -714,6 +714,8 @@ and specify the model's method at the end of the method chaining.
714714
715715 .. literalinclude :: model/046.php
716716
717+ .. _model-events :
718+
717719Model Events
718720************
719721
You can’t perform that action at this time.
0 commit comments