From 5da95f3c5b88c0936e4e7bfd7549457ba1c2b4d4 Mon Sep 17 00:00:00 2001 From: michalsn Date: Sun, 23 Feb 2025 16:24:11 +0100 Subject: [PATCH] docs: improved description of beforeDelete and afterDelete model events --- user_guide_src/source/models/model.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_guide_src/source/models/model.rst b/user_guide_src/source/models/model.rst index 1a08519ca55d..53664b5db1a8 100644 --- a/user_guide_src/source/models/model.rst +++ b/user_guide_src/source/models/model.rst @@ -1016,9 +1016,9 @@ beforeFind The name of the calling **method**, whether a **singleton** wa - ``findAll()`` **limit** = the number of rows to find. **offset** = the number of rows to skip during the search. afterFind Same as **beforeFind** but including the resulting row(s) of data, or null if no result found. -beforeDelete **id** = primary key of row being passed to the ``delete()`` method. +beforeDelete **id** = an array of primary key rows being passed to the ``delete()`` method. **purge** = boolean whether soft-delete rows should be hard deleted. -afterDelete **id** = primary key of row being passed to the ``delete()`` method. +afterDelete **id** = an array of primary key rows being passed to the ``delete()`` method. **purge** = boolean whether soft-delete rows should be hard deleted. **result** = the result of the ``delete()`` call on the Query Builder. **data** = unused.