title: MongoDB cursor and memory
body: <p>When I use a mongo DB cursor in php:</p>
  
  <pre><code>$Cursor = \MyDocument::find();
  
  foreach ($Cursor as $Document)
      $Document-&gt;doSomething();
  </code></pre>
  
  <p>Is there then only left the last $Document in the memory or do I have to remove the built documents from the cursor object?</p>