Symfony2 form type entity: Option is not selected <p>I use a Symfony2 (2.3) entity form type to load the options of a HTML select from a Doctrine entity:</p> <p>Class RoomFacilityType:</p> <pre><code>public function buildForm(FormBuilderInterface $builder, array $options) { $builder-&gt;add('title', 'text', array('label' =&gt; 'Bezeichnung', 'required' =&gt; false)) -&gt;add('save', 'submit', array('label' =&gt; 'Speichern')); // add referenced object facility type $builder-&gt;add('facilityType', new FacilityTypeType()); } </code></pre> <p>Class FacilityTypeType:</p> <pre><code>public function buildForm(FormBuilderInterface $builder, array $options) { $builder-&gt;add('type', 'entity', array('label' =&gt; 'Ausstattung', 'class' =&gt; 'xyz\abcBundle\Entity\FacilityType', 'property' =&gt; 'type')); } </code></pre> <p>In the controller I create a form with a RoomFacility entity:</p> <pre><code>$formRoomFacility = $this-&gt;createForm(new RoomFacilityType(), $roomFacility); </code></pre> <p>The RoomFacility entity has a ManToOne relation to entity FacilityType.</p> <p>When the form is rendered by a twig template, no option of the HTML select is selected (but when I use a text form type instead, the correct value ist displayed):</p> <pre><code>{{ form_widget(formRoomFacility.facilityType.type) }} </code></pre> <p>I have found questions about how to set an option selected by setting it's value explicitly, but that doesn't solve my problem either:</p> <pre><code>$formRoomFacility-&gt;get('facilityType')-&gt;setData($roomFacility-&gt;getFacilityType()); </code></pre> <p>Any suggestions?</p> <p>Thanks in advance</p> <p>Alex</p>