title: Symfony2 Doctrine merge
body: <p>I am studying <a href="https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/working-with-associations.html" rel="nofollow noreferrer">https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/working-with-associations.html</a> but I cannot figure out what cascade merge does. I have seen elsewhere that </p>
  
  <pre><code>$new_object = $em-&gt;merge($object); 
  </code></pre>
  
  <p>basically creates a new managed object based on <code>$object</code>. Is that correct?</p>