public function setVlan(\Entities\Vlan $vlan = NULL)
 {
     $this->__load();
     return parent::setVlan($vlan);
 }
 /**
  * @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;
 }