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