public function setLocation(\Entities\Location $location = NULL) { $this->__load(); return parent::setLocation($location); }
/** * * @param IXP_Form_Cabinet $form The form object * @param \Entities\Cabinet $object The Doctrine2 entity (being edited or blank for add) * @param bool $isEdit True of we are editing an object, false otherwise * @return void */ protected function addPostValidate($form, $object, $isEdit) { $object->setLocation($this->getD2EM()->getRepository('\\Entities\\Location')->find($form->getElement('locationid')->getValue())); return true; }