From 40b0606d45a83e71f22803504f5a6c2eca6c6684 Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Sun, 19 Jan 2014 12:44:28 +0400 Subject: [PATCH] AutoTimestamp field renaming --- framework/behaviors/AutoTimestamp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/behaviors/AutoTimestamp.php b/framework/behaviors/AutoTimestamp.php index cf8c33e..8283863 100644 --- a/framework/behaviors/AutoTimestamp.php +++ b/framework/behaviors/AutoTimestamp.php @@ -45,8 +45,8 @@ class AutoTimestamp extends Behavior * and update the `update_time` attribute upon AR updating. */ public $attributes = [ - ActiveRecord::EVENT_BEFORE_INSERT => 'create_time', - ActiveRecord::EVENT_BEFORE_UPDATE => 'update_time', + ActiveRecord::EVENT_BEFORE_INSERT => 'created_at', + ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at', ]; /** * @var \Closure|Expression The expression that will be used for generating the timestamp.