Skip to content

Commit

Permalink
Adding doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Mar 29, 2014
1 parent c6a4848 commit 7e24fb7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Model/Behavior/TreeBehavior.php
Expand Up @@ -111,6 +111,13 @@ public function beforeSave(Event $event, Entity $entity) {
}
}

/**
* Also deletes the nodes in the subtree of the entity to be delete
*
* @param \Cake\Event\Event the beforeDelete event that was fired
* @param \Cake\ORM\Entity the entity that is going to be saved
* @return void
*/
public function beforeDelete(Event $event, Entity $entity) {
$config = $this->config();
$left = $entity->get($config['left']);
Expand Down

0 comments on commit 7e24fb7

Please sign in to comment.