Commit 72145098 by Carsten Brandt

updated timestamp behavior in advanced app to renaming

parent 54476b48
...@@ -54,10 +54,10 @@ class User extends ActiveRecord implements IdentityInterface ...@@ -54,10 +54,10 @@ class User extends ActiveRecord implements IdentityInterface
{ {
return [ return [
'timestamp' => [ 'timestamp' => [
'class' => 'yii\behaviors\AutoTimestamp', 'class' => 'yii\behaviors\TimestampBehavior',
'attributes' => [ 'attributes' => [
ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'], ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'],
ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at', ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'],
], ],
], ],
]; ];
......
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