title: Does Doctrine have a SYNC method like Laravel Eloquent to work with entities?
body: <p>I'm trying to update/insert and sync several objects in a many to many relationship.  </p>
  
  <p>There is a many to many relationship between A and B entities.</p>
  
  <p>I have an array with the list of ids of <strong>entity B</strong> that i would like to insert in <strong>entity A</strong>.  The sync method will delete all the entities that aren't in the array. </p>
  
  <p>If such method doesn't exist in Symfony, what is the symfony way to handle this situation??</p>