Skip to content

Commit

Permalink
Merge pull request cakephp#3786 from cakephp/2.x-dependent-limitation
Browse files Browse the repository at this point in the history
Document a limitation of 'dependent'
  • Loading branch information
markstory committed Mar 3, 2016
2 parents 708c03a + 04f2a4a commit 7226dbb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions en/models/deleting-data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ You can hook custom logic into the delete process using the ``beforeDelete`` and
``afterDelete`` callbacks present in both Models and Behaviors. See
:doc:`/models/callback-methods` for more information.

.. note::

If you delete a record with dependent records and one of their delete callbacks,
e.g. ``beforeDelete`` returns ``false``, it will not stop the further event
propagation nor does it change the return value of the initial ``delete``.

.. _model-deleteall:

deleteAll
Expand Down

0 comments on commit 7226dbb

Please sign in to comment.