How to get updated object from Mongo <p>I have a Match document that have ReferenceMany(Scores) on it. When I add a new Score to a Match, and return the Match, the new score isn't there. On the next request though, the score is there. How can I force Doctrine to update my Match in the same request?</p> <p>Code:</p> <pre><code>$match = $dm-&gt;getRepository('Match')-&gt;find($matchId); // Save score. $dm-&gt;persist($score); // Add score to match $match-&gt;addScores($score); $dm-&gt;flush(); // &lt;-- This doesn't help. return $match; // &lt;-- Is missing the new Score. </code></pre>