Commit 40b0606d by Alexander Kochetov

AutoTimestamp field renaming

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