Permalink
Browse files

Fix for wrong callback in $callbacks array: renamed afterError to onE…

…rror
  • Loading branch information...
1 parent a056078 commit 17384f3cf437fedbe19459a8d154af85de276570 @majna majna committed May 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/BehaviorCollection.php
View
2 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 17384f3

Please sign in to comment.