diff --git a/framework/yii/base/Behavior.php b/framework/yii/base/Behavior.php index 1443e06..0b1786d 100644 --- a/framework/yii/base/Behavior.php +++ b/framework/yii/base/Behavior.php @@ -46,8 +46,8 @@ class Behavior extends \yii\base\Object * * ~~~ * [ - * 'beforeValidate' => 'myBeforeValidate', - * 'afterValidate' => 'myAfterValidate', + * Model::EVENT_BEFORE_VALIDATE => 'myBeforeValidate', + * Model::EVENT_AFTER_VALIDATE => 'myAfterValidate', * ] * ~~~ *