Skip to content

Commit c8e73b4

Browse files
committed
fixed AutoTimestamp example in advanced app
fixes yiisoft#429
1 parent 004f1a8 commit c8e73b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/advanced/common/models/User.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public function behaviors()
3737
'timestamp' => array(
3838
'class' => 'yii\behaviors\AutoTimestamp',
3939
'attributes' => array(
40-
ActiveRecord::EVENT_BEFORE_INSERT => 'create_time',
41-
ActiveRecord::EVENT_BEFORE_INSERT => 'update_time',
40+
ActiveRecord::EVENT_BEFORE_INSERT => array('create_time', 'update_time'),
4241
ActiveRecord::EVENT_BEFORE_UPDATE => 'update_time',
4342
),
4443
),

0 commit comments

Comments
 (0)