/** * @return mixed|void */ protected function createChildren() { $this->form = $this->getClassFromOptions(); if ($this->form->getFormOption('files')) { $this->parent->setFormOption('files', true); } $model = $this->getOption($this->valueProperty); if ($model !== null) { foreach ($this->form->getFields() as $name => $field) { $field->setValue($this->getModelValueAttribute($model, $name)); } } $this->children = $this->form->getFields(); }