title: How to stop Doctrine 2 from caching a result in Symfony 2?
body: <p>I want to be able to retrieve the existing version of an entity so I can compare it with the latest version. E.g. Editing a file, I want to know if the value has changed since being in the DB.</p>
  
  <pre><code>    $entityManager = $this-&gt;get('doctrine')-&gt;getEntityManager();
      $postManager = $this-&gt;get('synth_knowledge_share.manager');
  
      $repository = $entityManager-&gt;getRepository('KnowledgeShareBundle:Post');
      $post = $repository-&gt;findOneById(1); 
  
      var_dump($post-&gt;getTitle()); // This would output "My Title"
      $post-&gt;setTitle("Unpersisted new title");
  
      $existingPost = $repository-&gt;findOneById(1); // Retrieve the old entity
  
      var_dump($existingPost-&gt;getTitle()); // This would output "Unpersisted new title" instead of the expected "My Title"
  </code></pre>
  
  <p>Does anyone know how I can get around this caching?</p>