From be189fc4084312a97afb64d534a71731fe4ce8d5 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Thu, 16 May 2013 16:47:48 -0400 Subject: [PATCH] Fixed typo. --- yii/behaviors/AutoTimestamp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yii/behaviors/AutoTimestamp.php b/yii/behaviors/AutoTimestamp.php index 74049eb..3387cae 100644 --- a/yii/behaviors/AutoTimestamp.php +++ b/yii/behaviors/AutoTimestamp.php @@ -63,7 +63,7 @@ class AutoTimestamp extends Behavior { return array( ActiveRecord::EVENT_BEFORE_INSERT => 'beforeInsert', - ActiveRecord::EVENT_BEFORE_UPDATE => 'beforeInsert', + ActiveRecord::EVENT_BEFORE_UPDATE => 'beforeUpdate', ); }