Browse Source

AutoTimestamp field renaming

tags/2.0.0-beta
Alexander Kochetov 11 years ago
parent
commit
40b0606d45
  1. 4
      framework/behaviors/AutoTimestamp.php

4
framework/behaviors/AutoTimestamp.php

@ -45,8 +45,8 @@ class AutoTimestamp extends Behavior
* and update the `update_time` attribute upon AR updating. * and update the `update_time` attribute upon AR updating.
*/ */
public $attributes = [ public $attributes = [
ActiveRecord::EVENT_BEFORE_INSERT => 'create_time', ActiveRecord::EVENT_BEFORE_INSERT => 'created_at',
ActiveRecord::EVENT_BEFORE_UPDATE => 'update_time', ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at',
]; ];
/** /**
* @var \Closure|Expression The expression that will be used for generating the timestamp. * @var \Closure|Expression The expression that will be used for generating the timestamp.

Loading…
Cancel
Save