title: doctrine2 find method return the same object
body: <p><code>$test</code> have other <code>$type</code> and price for it different. In cart can be <code>$test</code> with same <code>id</code>, but other <code>$type</code> and that's a different product (object). </p>
  
  <p>Example:</p>
  
  <pre><code>    foreach ($cart as $order) {
          $test = $em-&gt;getRepository('OrfosCoreBundle:Test')-&gt;find($order['test_id']);
          $test-&gt;setType($order['test_type']);
          $tests[] = $test;
          $test = null;
      }
  </code></pre>
  
  <p>and in <code>$tests</code> array doctrine return the same object if <code>$order['test_id']</code> == previous <code>$order['test_id']</code></p>
  
  <pre><code>array
    0 =&gt; 
      object(Orfos\CoreBundle\Entity\Test)[105]
    1 =&gt; 
      object(Orfos\CoreBundle\Entity\Test)[105]
  </code></pre>
  
  <p>How I can get new object?</p>