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

pull/9679/merge
Sami Mokaddem 2024-05-03 15:27:08 +02:00
parent accd12f00c
commit 120b669c81
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)) {