public function setVirtualInterface(\Entities\VirtualInterface $virtualInterface = NULL)
 {
     $this->__load();
     return parent::setVirtualInterface($virtualInterface);
 }
 /**
  * @param IXP_Form_Interface_Vlan $form The form object
  * @param \Entities\VlanInterface $object The Doctrine2 entity (being edited or blank for add)
  * @param bool $isEdit True of we are editing an object, false otherwise
  * @return bool
  */
 protected function addPostValidate($form, $object, $isEdit)
 {
     $object->setVirtualInterface($this->getD2EM()->getRepository('\\Entities\\VirtualInterface')->find($form->getElement('virtualinterfaceid')->getValue()));
     $object->setVlan($this->getD2EM()->getRepository('\\Entities\\Vlan')->find($form->getElement('vlanid')->getValue()));
     if (!$this->setIp($form, $object->getVirtualInterface(), $object, false) || !$this->setIp($form, $object->getVirtualInterface(), $object, true)) {
         return false;
     }
     return true;
 }