title: symfony2 collection select entity
body: <p>have this ..</p>
  
  <pre><code>$builder-&gt;add('city', 'entity', array(
                  'class' =&gt; '..\Entity\City',
                  'translation_domain' =&gt; $this-&gt;translation_domain,
                  'required' =&gt; true,
                  'expanded' =&gt; true,
                  'invalid_message' =&gt; 'form.error.city',
                  'empty_value' =&gt; 'form.placeholder.city',
                  'query_builder' =&gt; function (...\Repository\CityRepository $repository) {
                      return $repository-&gt;get(array(
                          'enabled' =&gt; true,
                          'locale' =&gt; $this-&gt;container-&gt;get('poisk_raboty.helper.main')-&gt;getLocale(),
                      ), true);
                  },
                  'attr' =&gt; array(
                      'data-search' =&gt; 2,
                      'data-placeholder' =&gt; $this-&gt;container-&gt;get('translator')-&gt;trans('form.placeholder.city', array(), $this-&gt;translation_domain),
                  ),
              ))
          ;
  </code></pre>
  
  <p>How can I get cities in form builder, where one element must be like city?</p>