/** * @return array */ public function behaviors() { return array_merge(parent::behaviors(), [['class' => BlameableBehavior::className(), 'createdByAttribute' => 'user_id', 'updatedByAttribute' => false]]); }