title: Symfony Custom Form Select Value
body: <p>I am using Symfony3 and I want to be able to display custom select values by combining two fields together such as name and city. So, in essence in the select box it would show this: </p>
  
  <pre><code> ------------------------------------
   John Smith - Denver
   ------------------------------------
   Abe Lincoln - Washington D.C
   ------------------------------------
   George Washington - Washington D.C
   ------------------------------------
   etc...
   ------------------------------------
  </code></pre>
  
  <p>Here's my form...</p>
  
  <pre><code>$builder-&gt;add('person', EntityType::class, array(
              'required'=&gt;false,
              'class'=&gt;'AppBundle:Person',
              'choice_label'=&gt;'name',
              'label'=&gt;'Choose the person',
              'empty_data'=&gt;null,
              'placeholder'=&gt;"None",
              'query_builder' =&gt; function(EntityRepository $repository) {
                  return $repository-&gt;createQueryBuilder('p');
              }
          ));
  </code></pre>