示例#1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     $behaviors['blameable'] = \cookyii\behaviors\BlameableBehavior::class;
     $behaviors['timestamp'] = \cookyii\behaviors\TimestampBehavior::class;
     return $behaviors;
 }
示例#2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     $behaviors['unique-code-id'] = \cookyii\behaviors\UniqueCodeIdBehavior::class;
     $behaviors['timestamp'] = \cookyii\behaviors\TimestampBehavior::class;
     return $behaviors;
 }
示例#3
0
 /**
  * Save message to database
  * @inheritdoc
  */
 public function save($runValidation = true, $attributeNames = null)
 {
     return parent::save($runValidation, $attributeNames);
 }