Commit c8e73b42 by Carsten Brandt

fixed AutoTimestamp example in advanced app

fixes #429
parent 004f1a8a
......@@ -37,8 +37,7 @@ class User extends ActiveRecord implements Identity
'timestamp' => array(
'class' => 'yii\behaviors\AutoTimestamp',
'attributes' => array(
ActiveRecord::EVENT_BEFORE_INSERT => 'create_time',
ActiveRecord::EVENT_BEFORE_INSERT => 'update_time',
ActiveRecord::EVENT_BEFORE_INSERT => array('create_time', 'update_time'),
ActiveRecord::EVENT_BEFORE_UPDATE => 'update_time',
),
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment