chg: [component:CRUD] Added support of afterFind in the delete function

pull/9062/merge v2.4.192
Sami Mokaddem 2024-05-03 15:27:08 +02:00
parent b6769c5f58
commit d682d92973
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 3 additions and 0 deletions

View File

@ -289,6 +289,9 @@ class CRUDComponent extends Component
}
}
}
if (isset($params['afterFind'])) {
$data = $params['afterFind']($data);
}
if (isset($params['beforeDelete'])) {
$data = $params['beforeDelete']($data);
if (empty($data)) {