From 4ad0b9a3351341b87510bda412b5efed55d3df96 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 17 May 2013 10:36:35 -0400 Subject: [PATCH] changed to insert_time. --- yii/behaviors/AutoTimestamp.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yii/behaviors/AutoTimestamp.php b/yii/behaviors/AutoTimestamp.php index ea69963..059af2a 100644 --- a/yii/behaviors/AutoTimestamp.php +++ b/yii/behaviors/AutoTimestamp.php @@ -28,7 +28,7 @@ use yii\db\ActiveRecord; * } * ~~~ * - * By default, AutoTimestamp will fill the `create_time` attribute with the current timestamp + * By default, AutoTimestamp will fill the `insert_time` attribute with the current timestamp * when the associated AR object is being inserted; it will fill the `update_time` attribute * with the timestamp when the AR object is being updated. * @@ -42,11 +42,11 @@ class AutoTimestamp extends Behavior * The array keys are the ActiveRecord events upon which the attributes are to be filled with timestamps, * and the array values are the corresponding attribute to be updated. You can use a string to represent * a single attribute, or an array to represent a list of attributes. - * The default setting is to update the `create_time` attribute upon AR insertion, + * The default setting is to update the `insert_time` attribute upon AR insertion, * and update the `update_time` attribute upon AR updating. */ public $attributes = array( - ActiveRecord::EVENT_BEFORE_INSERT => 'create_time', + ActiveRecord::EVENT_BEFORE_INSERT => 'insert_time', ActiveRecord::EVENT_BEFORE_UPDATE => 'update_time', ); /**