Permalink
Browse files

Merge pull request #98 from majna/2.0

Fix for wrong callback in $callbacks array: renamed afterError to onError
  • Loading branch information...
2 parents 2d78d59 + 17384f3 commit 40c397b0036dc5f78ee831fc16979e1cd52c4ea1 @ADmad ADmad committed May 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/BehaviorCollection.php
@@ -148,7 +148,7 @@ public function load($behavior, $config = array()) {
$parentMethods = array_flip(get_class_methods('ModelBehavior'));
$callbacks = array(
'setup', 'cleanup', 'beforeFind', 'afterFind', 'beforeSave', 'afterSave',
- 'beforeDelete', 'afterDelete', 'afterError'
+ 'beforeDelete', 'afterDelete', 'onError'
);
foreach ($methods as $m) {

0 comments on commit 40c397b

Please sign in to comment.