Browse Source

fixed AutoTimestamp example in advanced app

fixes #429
tags/2.0.0-beta
Carsten Brandt 12 years ago
parent
commit
c8e73b42e7
  1. 3
      apps/advanced/common/models/User.php

3
apps/advanced/common/models/User.php

@ -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',
),
),

Loading…
Cancel
Save