Beispiel #1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $parentBehaviors = parent::behaviors();
     $thisBehaviors = ['relationDelete' => ['class' => RelationsDelete::className(), 'relations' => ['plans', 'prices', 'requests', 'usages']]];
     return ArrayHelper::merge($parentBehaviors, $thisBehaviors);
 }
Beispiel #2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $parentBehaviors = parent::behaviors();
     $thisBehaviors = ['relationDelete' => ['class' => RelationsDelete::className(), 'relations' => ['days']], 'days' => ['class' => DaysGenerator::className()]];
     return ArrayHelper::merge($parentBehaviors, $thisBehaviors);
 }