Trait
DependentDeleteTrait
Implements cascading deletes for dependent associations.
Included by HasOne and HasMany association classes.
Namespace: Cake\ORM\Association
Deprecated: 3.5.0 Unused in CakePHP now. This class will be removed in 4.0.0
Deprecated: 3.5.0 Unused in CakePHP now. This class will be removed in 4.0.0
Method Summary
-
cascadeDelete() public
Cascade a delete to remove dependent records.
Method Detail
cascadeDelete() ΒΆ public
cascadeDelete(Cake\Datasource\EntityInterface $entity, array $options = []): bool
Cascade a delete to remove dependent records.
This method does nothing if the association is not dependent.
Parameters
-
Cake\Datasource\EntityInterface
$entity The entity that started the cascaded delete.
-
array
$options optional The options for the original delete.
Returns
bool