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