Пример #1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return [['class' => TimestampUTCBehavior::className(), 'createdAtAttribute' => 'create_stamp', 'updatedAtAttribute' => 'update_stamp'], ['class' => BlameableBehavior::className(), 'createdByAttribute' => 'author_id', 'updatedByAttribute' => null]];
 }
Пример #2
0
 /**
  * @return array
  */
 public function behaviors()
 {
     return [['class' => TimestampUTCBehavior::className(), 'createdAtAttribute' => 'create_stamp', 'updatedAtAttribute' => 'update_stamp']];
 }