コード例 #1
0
 /**
  * Set form fields
  *
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('groupSections', 'entity', ['label' => false, 'class' => 'CivixCoreBundle:GroupSection', 'choices' => $this->user->getGroupSections(), 'required' => false, 'expanded' => true, 'multiple' => true]);
 }
 public function getGroupSections()
 {
     $this->__load();
     return parent::getGroupSections();
 }