From 6e34488fa5752cf274f32363d93af1e7081ad8db Mon Sep 17 00:00:00 2001 From: Paul Kofmann Date: Mon, 30 Dec 2013 12:42:41 +0100 Subject: [PATCH] Using constants instead of literals in Behavior --- framework/yii/base/Behavior.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', * ] * ~~~ *