public function getLocation()
 {
     $this->__load();
     return parent::getLocation();
 }
Exemplo n.º 2
0
 /**
  *
  * @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
  * @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('locationid')->setValue($object->getLocation()->getId());
     }
 }