/**
  *
  * @param IXP_Form_SwitchPort $form The form object
  * @param \Entities\SwitchPort $object The Doctrine2 entity (being edited or blank for add)
  * @param bool $isEdit True of we are editing an object, false otherwise
  * @param array $options Options passed onto Zend_Form
  * @param string $cancelLocation Where to redirect to if 'Cancal' is clicked
  * @return void
  */
 protected function formPostProcess($form, $object, $isEdit, $options = null, $cancelLocation = null)
 {
     if ($isEdit) {
         $form->getElement('switchid')->setValue($object->getSwitcher()->getId());
     }
 }
 public function getSwitcher()
 {
     $this->__load();
     return parent::getSwitcher();
 }