Exemple #1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [FileBehavior::className()]);
 }
Exemple #2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return array_merge(parent::behaviors(), [['class' => CascadeBehavior::className(), 'children' => ['programs']], ['class' => FileBehavior::className(), 'originalNameAttr' => 'image']]);
 }