Example #1
0
 /**
  * @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']];
 }
Example #2
0
 /**
  * @inheritdoc
  * @return type array
  */
 public function behaviors()
 {
     return [['class' => UUIDBehavior::className(), 'column' => 'id']];
 }