예제 #1
0
 /**
  * @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;
 }
예제 #2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     $behaviors['blameable'] = \cookyii\behaviors\BlameableBehavior::class;
     $behaviors['timestamp'] = \cookyii\behaviors\TimestampBehavior::class;
     return $behaviors;
 }
예제 #3
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     $behaviors['unique-code-id'] = \cookyii\behaviors\UniqueCodeIdBehavior::class;
     $behaviors['timestamp'] = \cookyii\behaviors\TimestampBehavior::class;
     return $behaviors;
 }