\Cake\ORM\AssociationDependentDeleteHelper

Helper class for cascading deletes in associations.

Summary

Methods
Properties
Constants
cascadeDelete()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

cascadeDelete()

cascadeDelete(\Cake\ORM\Association  $association, \Cake\Datasource\EntityInterface  $entity, array  $options = array()) : boolean

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 $options

The options for the original delete.

Returns

boolean —

Success.