/** * @return Form **/ public final function attachPrimitives(Form $form) { foreach ($this->getFormMapping() as $primitive) { $form->add($primitive); } return $form; }
/** * @return Form **/ public function fillForm(Form $form, $prefix = null) { return $form->add($this->makePrimitive($prefix . $this->name)); }