/** * @inheritdoc * @return type mixed */ public function behaviors() { return [['class' => TimestampBehavior::className(), 'createdAtAttribute' => 'created_at', 'updatedAtAttribute' => 'updated_at', 'value' => new \yii\db\Expression('NOW()')], ['class' => BlameableBehavior::className(), 'createdByAttribute' => 'created_by', 'updatedByAttribute' => 'updated_by'], ['class' => UUIDBehavior::className(), 'column' => 'id']]; }
/** * @inheritdoc * @return type array */ public function behaviors() { return [['class' => UUIDBehavior::className(), 'column' => 'id']]; }