Example #1
0
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), ['time' => ['class' => TimestampBehavior::className(), 'createdAtAttribute' => 'dateCreate', 'updatedAtAttribute' => 'dateUpdate', 'value' => new Expression('NOW()')]]);
 }
Example #2
0
 public function behaviors()
 {
     return ArrayHelper::merge(parent::behaviors(), ['Translit' => ['titleAttribute' => 'fullName']]);
 }
Example #3
0
 public function behaviors()
 {
     $behaviors = ArrayHelper::merge(parent::behaviors(), ['category' => ['class' => CategoryBehavior::className(), 'route' => '/catalog/default/index']]);
     return $behaviors;
 }
Example #4
0
 public function behaviors()
 {
     $behaviors = ArrayHelper::merge(parent::behaviors(), ['category' => ['class' => CategoryBehavior::className()]]);
     return $behaviors;
 }