Fix for 2.0 BehaviorCollection::load() invalid callback afterError in list. #98

Merged
merged 1 commit into from May 27, 2011
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) {