title: Doctrine 2 not persisting the relation from owning side one to Many
body: <p>I have this code</p>
  
  <pre><code>// ONE to many Bidir -- inverse side
      /**
       * @ORM\OneToMany(targetEntity="Item", mappedBy="Room", cascade={"persist"})
       **/
      protected $items;
  </code></pre>
  
  <p>The other side</p>
  
  <pre><code>// ONE to many Bidir-- own side
      /**
       * @ORM\ManyToOne(targetEntity="Room", inversedBy="items")
       * @ORM\JoinColumn(name="room_id", referencedColumnName="id")
       **/
      protected $room;
  </code></pre>
  
  <p>My Problem is that i go to item page and i select Room , then i can see items preselecetd in Room page</p>
  
  <p>But if i go to Room page and i try to multiselect many items , then those are not persisted</p>
  
  <p>EDIT: I have seen that it is only happening for OneToMany relation ship. For Manyto Many they are working fine</p>
  
  <p>EDIT2:</p>
  
  <p>I am talking about the backend area where i have the form and select box where i can select multiple items. This form/CRUD code / controllers are genrated by doctrine. SO i don't need to add any extra function. Any way this is my controller code</p>
  
  <pre><code>$editForm   = $this-&gt;createForm(new RoomType(), $entity);
  
  
          $request = $this-&gt;getRequest();
  
          $editForm-&gt;bindRequest($request);
          if ($editForm-&gt;isValid()) {
              $em-&gt;persist($entity);
              $em-&gt;flush();
  </code></pre>
  
  <p>When i try to walk through in controller like this</p>
  
  <pre><code>foreach($entity-&gt;getItems() as $item)
          echo $item;
  </code></pre>
  
  <p>Then i can see all thye items there. So it means all items are there in main object but its not persisting them. i don't know why.</p>
  
  <p>If there is owing , reverse side problem. How can i chnage the relationship from owing to inverse and inverse to owning</p>