title: org.hibernate.ObjectDeletedException: deleted instance passed to merge
body: <p>This is my remove method:</p>
  
  <pre><code>public void removeIletisimAdresi(Integer index){
                getUser().getIletisimBilgileri().remove(getUser().getIletisimBilgileri().get(index))
          }
  </code></pre>
  
  <p>this is my parent relation</p>
  
  <p>...</p>
  
  <pre><code>@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, targetEntity= IletisimBilgileri.class,  mappedBy = "user")
  @Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN)
  private List&lt;IletisimBilgileri&gt; iletisimBilgileri = new ArrayList&lt;IletisimBilgileri(0);
  </code></pre>
  
  <p>...</p>
  
  <p>this is my child :</p>
  
  <pre><code>@ManyToOne(fetch = FetchType.LAZY)
  @JoinColumn(name = "Kullanici")
  private Users user ;
  </code></pre>
  
  <p>so if i call remove method and update parent like entityManager.merge(user),it throws an exception like this:</p>
  
  <p>Caused by: org.hibernate.ObjectDeletedException: deleted instance passed to merge: [com.medikalborsasi.model.IletisimBilgileri#]</p>
  
  <p>..</p>
  
  <p>can you explain and help me how can i solve this problem?</p>