Example #1
0
 public function getFormOptions()
 {
     $_options = parent::getFormOptions();
     $map = $this->admin_object->orm_metadata->getAssociationMapping($this->class_property);
     /*
     $admin  = $this->admin_object->generator->getAdminByClass( $map['targetEntity'] ) ;
     */
     if (null !== $this->choice_code) {
         $_options['sf_form_type'] = 'sf_entity';
         $_options['entity_class'] = $map['targetEntity'];
     } else {
         if (null !== $this->choice_code) {
             \Dev::dump($this->choice_code);
             exit;
         } else {
             $_options['class'] = $map['targetEntity'];
             if (null !== $this->group_by) {
                 $_options['group_by'] = $this->group_by;
             }
         }
     }
     return $_options;
 }
Example #2
0
 public function getFormOptions()
 {
     $options = parent::getFormOptions();
     $options['widget_type'] = 'inline';
     return $options;
 }