Skip to content

Commit d8be763

Browse files
authored
docs: improved description of beforeDelete and afterDelete model events (codeigniter4#9459)
1 parent 0ee6ade commit d8be763

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

user_guide_src/source/models/model.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,9 +1016,9 @@ beforeFind The name of the calling **method**, whether a **singleton** wa
10161016
- ``findAll()`` **limit** = the number of rows to find.
10171017
**offset** = the number of rows to skip during the search.
10181018
afterFind Same as **beforeFind** but including the resulting row(s) of data, or null if no result found.
1019-
beforeDelete **id** = primary key of row being passed to the ``delete()`` method.
1019+
beforeDelete **id** = an array of primary key rows being passed to the ``delete()`` method.
10201020
**purge** = boolean whether soft-delete rows should be hard deleted.
1021-
afterDelete **id** = primary key of row being passed to the ``delete()`` method.
1021+
afterDelete **id** = an array of primary key rows being passed to the ``delete()`` method.
10221022
**purge** = boolean whether soft-delete rows should be hard deleted.
10231023
**result** = the result of the ``delete()`` call on the Query Builder.
10241024
**data** = unused.

0 commit comments

Comments
 (0)