Example #1
0
 public function behaviors()
 {
     return ['timestamp' => TimestampBehavior::className(), 'array' => ['class' => ArrayBehavior::className(), 'attributes' => [ArrayBehavior::TYPE_SERIALIZE => ['access_token']]]];
 }
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['timestamp' => ['class' => TimestampBehavior::className(), 'attributes' => [ActiveRecord::EVENT_BEFORE_INSERT => ['created_at']]], 'array' => ['class' => ArrayBehavior::className(), 'attributes' => [ArrayBehavior::TYPE_SERIALIZE => ['message']]]];
 }