Commit 404a219a by Alexander Kochetov

AutoTimestamp updated

parent e4963f50
......@@ -27,8 +27,8 @@ use yii\db\ActiveRecord;
* }
* ~~~
*
* By default, AutoTimestamp will fill the `create_time` attribute with the current timestamp
* when the associated AR object is being inserted; it will fill the `update_time` attribute
* By default, AutoTimestamp will fill the `created_at` attribute with the current timestamp
* when the associated AR object is being inserted; it will fill the `updated_at` attribute
* with the timestamp when the AR object is being updated.
*
* @author Qiang Xue <qiang.xue@gmail.com>
......@@ -41,8 +41,8 @@ class AutoTimestamp extends Behavior
* The array keys are the ActiveRecord events upon which the attributes are to be filled with timestamps,
* and the array values are the corresponding attribute(s) to be updated. You can use a string to represent
* a single attribute, or an array to represent a list of attributes.
* The default setting is to update the `create_time` attribute upon AR insertion,
* and update the `update_time` attribute upon AR updating.
* The default setting is to update the `created_at` attribute upon AR insertion,
* and update the `updated_at` attribute upon AR updating.
*/
public $attributes = [
ActiveRecord::EVENT_BEFORE_INSERT => 'created_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