On this page
Class DependentDeleteHelper
Helper class for cascading deletes in associations.
Namespace: Cake\ORM\Association
Method Summary
cascadeDelete() public
Cascade a delete to remove dependent records.
Method Detail
cascadeDelete() public
cascadeDelete(Cake\ORM\Association $association, Cake\Datasource\EntityInterface $entity, array<string, mixed> $options = []): bool
Cascade a delete to remove dependent records.
This method does nothing if the association is not dependent.
Parameters
Cake\ORM\Association
$association-
The association callbacks are being cascaded on.
Cake\Datasource\EntityInterface
$entity-
The entity that started the cascaded delete.
array<string, mixed>
$options optional-
The options for the original delete.
Returns
bool
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.ORM.Association.DependentDeleteHelper.html