title: How to create multiple ChoiceType - Rows in Symfony
body: <p>I have a multiple EntityType which gets his values from Database as following:</p>
  
  <p>MyFormType.php</p>
  
  <pre><code> private $membersRepository;
  
   public function __construct(MembersRepository $membersRepository)
   {
      $this-&gt;membersRepository = $membersRepository;
   }
  
   public function buildForm(FormBuilderInterface $builder, array $options)
   {
      $builder
          -&gt;add('trainer', EntityType::class, [
              'multiple' =&gt; true,
              'expanded' =&gt; true,
              'class' =&gt; Members::class,
              'choices' =&gt; $this-&gt;membersRepository-&gt;findAllByExecutive(),
              'placeholder' =&gt; 'Ausbilder',
              'label' =&gt; 'Ausbilder',
              'attr'=&gt; array('class'=&gt;'form-control'),
              ])
  </code></pre>
  
  <p>My Repository with findAllByExecutive()</p>
  
  <pre><code> /**
   * @return Members[]
   */
  public function findAllByExecutive()
  {
      return $this-&gt;createQueryBuilder('u')
      -&gt;select('partial u.{id, firstname, lastname}')
          -&gt;orderBy('u.lastname', 'ASC')
          -&gt;add('where', 'u.executive = 1')
          -&gt;getQuery()
          -&gt;execute();
  }
  </code></pre>
  
  <p>and finally my controller to put this values to database</p>
  
  <pre><code> if ($form-&gt;isSubmitted() &amp;&amp; $form-&gt;isValid()) {
  
          /** @var Dienstbuch $dienstbuch */
          $dienstbuch = $form-&gt;getData();
          //dd($dienstbuch-&gt;trainer);
          $em-&gt;persist($dienstbuch);
          $em-&gt;flush();
          $this-&gt;addFlash('success', 'Eintrag gespeichert');
  
          return $this-&gt;redirectToRoute('dienstbuch.neu');
      }
  </code></pre>
  
  <ol>
  <li>Why my method findAllByExecutive() gives me more then my 3 expected Rows?!</li>
  <li>How i can build 3 checkboxes to every user row? i get only one checkbox to user. I have read many hours, docs, posts but i cant find a solution. I hope you can help me with a link or an idea.</li>
  </ol>