title: How to update embedded document in MongoDB with Doctrine ODM
body: <p>I'm unable to find how to update embedded documents with Doctrine Mongo ODM in Symfony2. I have a class called Page with many embedded documents "Comments" and I want to use createQueryBuilder to update specific comment. Here is a simple class that I have:</p>
  
  <p>class Page
  {</p>
  
  <pre><code>protected $id;
  
  /** @MongoDB\EmbedMany */
  private $pageComment = array();
  </code></pre>
  
  <p>}</p>
  
  <p>I searched the whole internet, but I don't see to find any info on how to update subdocuments of a document with Doctrine ODM query builder. I will be thankful for any information as I'm new to both Doctrine and Mongo. In simple words I want to update specific comment in a page after searching for it by id.</p>
  
  <p>Thanks in advance for your help!</p>