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