public function behaviors() { return [['class' => TimestampBehavior::className(), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'], ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']]]]; }
public function behaviors() { return [['class' => TimestampBehavior::className(), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => ['date_entered', 'date_updated'], ActiveRecord::EVENT_BEFORE_UPDATE => ['date_updated']]], ['class' => BlameableBehavior::className(), 'createdByAttribute' => 'user_id']]; }
/** * @inheritdoc */ public function behaviors() { return [TimestampBehavior::className()]; }