示例#1
0
 /**
  *
  * @param IXP_Form $form The form object
  * @param \Entities\Vlan $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->setInfrastructure($this->getD2EM()->getRepository('\\Entities\\Infrastructure')->find($form->getElement('infrastructure')->getValue()));
     return true;
 }
 public function setInfrastructure(\Entities\Infrastructure $infrastructure = NULL)
 {
     $this->__load();
     return parent::setInfrastructure($infrastructure);
 }