title: Symfony2 EntityManager Updating without persist
body: <p>As you can see below, I do not "persist" at all. But the changes I make are registering. I would appreciate your help.</p>
  
  <p><code>$entityManager = $this-&gt;getDoctrine()-&gt;getManager();
   $entity = $entityManager-&gt;getRepository(City::class)-&gt;find(1);
   $entity-&gt;setName("debug name");
   $entityManager-&gt;flush();</code></p>