/** * @inheritdoc */ public function behaviors() { $behaviors = parent::behaviors(); $behaviors['unique-code-id'] = ['class' => \cookyii\behaviors\UniqueCodeIdBehavior::class, 'codeAtAttribute' => 'code', 'length' => 32]; $behaviors['timestamp'] = ['class' => \cookyii\behaviors\TimestampBehavior::class, 'updatedAtAttribute' => false]; return $behaviors; }
/** * @inheritdoc */ public function behaviors() { $behaviors = parent::behaviors(); $behaviors['blameable'] = \cookyii\behaviors\BlameableBehavior::class; $behaviors['timestamp'] = \cookyii\behaviors\TimestampBehavior::class; return $behaviors; }
/** * @inheritdoc */ public function behaviors() { $behaviors = parent::behaviors(); $behaviors['unique-code-id'] = \cookyii\behaviors\UniqueCodeIdBehavior::class; $behaviors['timestamp'] = \cookyii\behaviors\TimestampBehavior::class; return $behaviors; }