<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed May 22 06:04:21 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+MODM+AND+resolution+%3D+Unresolved+AND+component+is+EMPTY+ORDER+BY+priority+DESC&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+MODM+AND+resolution+%3D+Unresolved+AND+component+is+EMPTY+ORDER+BY+priority+DESC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="18" total="18"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[MODM-153] &quot;Near&quot; Query does not work.</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-153</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;&quot;Near&quot; statement does not work for me. The following code returns  &lt;b&gt;all&lt;/b&gt;  cities from collection:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;$cities = $this-&amp;gt;dm-&amp;gt;createQuery(&apos;City&apos;)
    -&amp;gt;field(&apos;coordinates&apos;)-&amp;gt;near(50, 60)
    -&amp;gt;execute();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Could you please fix it?&lt;/p&gt;</description>
                <environment></environment>
            <key id="12912">MODM-153</key>
            <summary>&quot;Near&quot; Query does not work.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="dmitry-by">Dmitry</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Aug 2011 12:55:40 +0000</created>
                <updated>Mon, 20 Feb 2012 19:54:57 +0000</updated>
                                    <version>1.0.0BETA2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16411" author="maarky" created="Fri, 2 Sep 2011 04:11:59 +0000"  >&lt;p&gt;It also does not work in beta3 but it fails differently. It never returns anything.&lt;/p&gt;

&lt;p&gt;$places = $documentManager-&amp;gt;createQueryBuilder(&apos;Documents\Place&apos;)&lt;br/&gt;
			-&amp;gt;field(&apos;point&apos;)&lt;br/&gt;
			-&amp;gt;near(36.5788494, -121.7207804)&lt;br/&gt;
			-&amp;gt;getQuery()&lt;br/&gt;
			-&amp;gt;execute();&lt;/p&gt;

&lt;p&gt;This returns 0 documents even though I have a point at 36.5788493, -121.7207805. Doctrine\MongoDB\Query\Builder::near() only takes one argument so the Y value is ignored. However, the docblock specifies 2 params.&lt;/p&gt;</comment>
                    <comment id="16426" author="timatej" created="Sun, 4 Sep 2011 19:10:45 +0000"  >&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;Here is correct realization of this function in &lt;br/&gt;
Doctrine\MongoDB\Query\Builder&lt;/p&gt;

&lt;p&gt;    public function near($x, $y)&lt;/p&gt;
    {
        $this-&amp;gt;query[&apos;type&apos;] = Query::TYPE_GEO_LOCATION;
        $this-&amp;gt;query[&apos;near&apos;] = array($x, $y);
        return $this;
    }

&lt;p&gt;When may this fix appear in Doctrine ODM?&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                    <comment id="17468" author="nvoyageur" created="Mon, 20 Feb 2012 19:54:57 +0000"  >&lt;p&gt;I had the same issue on 1.0.0.BETA3.&lt;/p&gt;

&lt;p&gt;The solution was to change the query up a little.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-none&quot;&gt;$places = $this-&amp;gt;dm-&amp;gt;createQueryBuilder(&apos;\Application\Event&apos;)-&amp;gt;field(&apos;latitude&apos;)-&amp;gt;near(50)-&amp;gt;field(&apos;longitude&apos;)-&amp;gt;near(60)-&amp;gt;getQuery()-&amp;gt;execute(); 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href=&quot;http://stackoverflow.com/a/9015906/179335&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/a/9015906/179335&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-141] Doctrine ODM: Documentation error</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-141</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;I think that is a documentation issue, in &lt;a href=&quot;http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html&lt;/a&gt; (15.3. Modifier Operations) the queries are like:&lt;/p&gt;

&lt;p&gt;$dm-&amp;gt;createQueryBuilder(&apos;User&apos;)&lt;/p&gt;

&lt;p&gt;    &lt;del&gt;&amp;gt;field(&apos;password&apos;)&lt;/del&gt;&amp;gt;set(&apos;newpassword&apos;)&lt;/p&gt;

&lt;p&gt;    &lt;del&gt;&amp;gt;field(&apos;username&apos;)&lt;/del&gt;&amp;gt;equals(&apos;jwage&apos;)&lt;/p&gt;

&lt;p&gt;    -&amp;gt;getQuery()&lt;br/&gt;
    -&amp;gt;execute();&lt;/p&gt;


&lt;p&gt;But it is missing the update(), it should be like:&lt;/p&gt;

&lt;p&gt;$dm-&amp;gt;createQueryBuilder(&apos;User&apos;)&lt;/p&gt;

&lt;p&gt;    -&amp;gt;update()&lt;br/&gt;
    &lt;del&gt;&amp;gt;field(&apos;password&apos;)&lt;/del&gt;&amp;gt;set(&apos;newpassword&apos;)&lt;/p&gt;

&lt;p&gt;    &lt;del&gt;&amp;gt;field(&apos;username&apos;)&lt;/del&gt;&amp;gt;equals(&apos;jwage&apos;)&lt;/p&gt;

&lt;p&gt;    -&amp;gt;getQuery()&lt;br/&gt;
    -&amp;gt;execute();&lt;/p&gt;

&lt;p&gt;All the queries in that section have similar issue&lt;/p&gt;</description>
                <environment>not applicable</environment>
            <key id="12583">MODM-141</key>
            <summary>Doctrine ODM: Documentation error</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="diego.lewin">Diego Lewin</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Apr 2011 18:38:27 +0000</created>
                <updated>Tue, 26 Apr 2011 18:38:27 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-138] Field&apos;s name attribute does not work for the update queries</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-138</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Documents&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;class Test 
{
.
.
.
/**
 * @EmbedOne(targetDocument=&lt;span class=&quot;code-quote&quot;&gt;&quot;Location&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;l&quot;&lt;/span&gt;)
*/
&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $location;
.
.
.
}

/** @EmbeddedDocument */
class Location
{
    /**
	 * @Field(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;y&quot;&lt;/span&gt;)
	 */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $lat;

    /**
	 * @Field(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;x&quot;&lt;/span&gt;)
	 */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $lng;

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct($latitude,$longitude) {
		$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lat = $latitude;
		$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lng = $longitude;
	}
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Update query:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;$dm-&amp;gt;createQueryBuilder(&apos;Test&apos;)
-&amp;gt;update()
-&amp;gt;field(&apos;id&apos;)-&amp;gt;equals(123)
-&amp;gt;field(&apos;l&apos;)-&amp;gt;set(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Location(39, 32);
-&amp;gt;getQuery(array(&apos;upsert&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;))
-&amp;gt;execute();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Result of this query is&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;l&quot;&lt;/span&gt;: {
    &lt;span class=&quot;code-quote&quot;&gt;&quot;lat&quot;&lt;/span&gt;: 39,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;lng&quot;&lt;/span&gt;: 32
},

however, it should be

&lt;span class=&quot;code-quote&quot;&gt;&quot;l&quot;&lt;/span&gt;: {
    &lt;span class=&quot;code-quote&quot;&gt;&quot;y&quot;&lt;/span&gt;: 39,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;x&quot;&lt;/span&gt;: 32
},

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;also field function can support field name of the class on update queries, as follows&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;$dm-&amp;gt;createQueryBuilder(&apos;Test&apos;)
-&amp;gt;update()
-&amp;gt;field(&apos;id&apos;)-&amp;gt;equals(123)
-&amp;gt;field(&apos;location&apos;)-&amp;gt;set(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Location(39, 32);
-&amp;gt;getQuery(array(&apos;upsert&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;))
-&amp;gt;execute();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="12545">MODM-138</key>
            <summary>Field&apos;s name attribute does not work for the update queries</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="bsrykt">Ba&#351;ar Aykut</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Apr 2011 12:38:04 +0000</created>
                <updated>Thu, 7 Apr 2011 12:38:04 +0000</updated>
                                    <version>1.0.0BETA3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-128] Upserts in Query builder</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-128</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;It seems that if you just call upsert(true) in a update request, it won&apos;t be enough. You have to calm getQuery(array(&apos;upsert&apos; =&amp;gt; true)) as well in order to have the &apos;insert if not exist&apos; working.  &lt;/p&gt;</description>
                <environment>Mac OS X + MAMP</environment>
            <key id="12417">MODM-128</key>
            <summary>Upserts in Query builder</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="billybob">Billy Bob</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 Feb 2011 23:31:45 +0000</created>
                <updated>Wed, 23 Feb 2011 23:31:45 +0000</updated>
                                    <version>1.0.0BETA2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-129] Storing embeded documents containing embeded documents, already persistet in another collection fails</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-129</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;We persist a document a1 containing an embedded document a1.1 which itself contains another embedded document a1.1.1. When the embedded document a1.1 is moved to another document of another collection b1 and needs to get persisted as embedded document b1.1 the embedded document a1.1.1 (which is now part of b1.1, too) is not saved as an embedded document of  b1.1.&lt;/p&gt;

&lt;p&gt;Example: We use a version object which contains a pageversion as an embedded document. This page object contains multiple elements (stored as embedded documents) which themselves contain several parameter objects (stored as embedded document of elements). Now assume we have such a persisted version and want to &quot;copy&quot; the pageversion in another collection. So we generate a new page object, and add to this page all elements of the persisted pageversion. If we now persist this page, the representation in mongodb contains all elements but not any parameters, which should be part of the page as well (as they are part of an element).&lt;/p&gt;</description>
                <environment></environment>
            <key id="12422">MODM-129</key>
            <summary>Storing embeded documents containing embeded documents, already persistet in another collection fails</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="kolja">Kolja Treutlein</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Feb 2011 05:36:07 +0000</created>
                <updated>Fri, 25 Feb 2011 11:39:02 +0000</updated>
                                    <version>1.0.0BETA3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15368" author="kolja" created="Fri, 25 Feb 2011 05:43:23 +0000"  >&lt;p&gt;Testcase&lt;/p&gt;</comment>
                    <comment id="15370" author="jwage" created="Fri, 25 Feb 2011 11:39:02 +0000"  >&lt;p&gt;Try cloning the embedded document when you move it. The reason why you have issues most likely is because internally inside Doctrine we keep track of each embedded document instance and what parent document it is attached to. So when you move it, Doctrine gets confused.  You need to move it by cloning so the embedded document is actually a new object instance to Doctrine.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10945" name="testcase.tar.gz" size="2333" author="kolja" created="Fri, 25 Feb 2011 05:43:23 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-157] Github-PR-151 by l3pp4rd: fixes triggering fatal error on preupdate event in case changeset is clea</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-157</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of &lt;/p&gt;
{username}
&lt;p&gt;:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/mongodb-odm/pull/151&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/mongodb-odm/pull/151&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;fixes triggering fatal error on preupdate event in case changeset is cleared during onFlush&lt;/p&gt;

&lt;p&gt;similar issue is fixed in ORM it should be supported on ODM mongodb also&lt;/p&gt;</description>
                <environment></environment>
            <key id="12971">MODM-157</key>
            <summary>Github-PR-151 by l3pp4rd: fixes triggering fatal error on preupdate event in case changeset is clea</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Aug 2011 18:02:51 +0000</created>
                <updated>Mon, 19 Sep 2011 13:51:24 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="16494" author="strygin" created="Mon, 19 Sep 2011 13:27:25 +0000"  >&lt;p&gt;Hmm... The bug is still actual for ORM layer in master. &lt;/p&gt;</comment>
                    <comment id="16495" author="vgarvardt" created="Mon, 19 Sep 2011 13:51:24 +0000"  >&lt;p&gt;Got the same issue for ORM in 2.1.1 and same in master. Made a fix based on fix for ODM and pull request on github.&lt;/p&gt;

&lt;p&gt;URL: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/126&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/126&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PS: maybe new issue should be created in Doctrine 2 - ORM project for this issue&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-156] Github-PR-152 by vladar: Property ClassMetadata::file is not serialized</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-156</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of &lt;/p&gt;
{username}
&lt;p&gt;:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/mongodb-odm/pull/152&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/mongodb-odm/pull/152&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This is causing errors, when saving gridfs files with persistent metadata cache engine (like apc, memcached, etc).&lt;/p&gt;

&lt;p&gt;I&apos;ve also found same bug in Jira - &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/MODM-132&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/MODM-132&lt;/a&gt; but seems that it is not fixed yet.&lt;/p&gt;

&lt;p&gt;Added fix + tests.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="12970">MODM-156</key>
            <summary>Github-PR-152 by vladar: Property ClassMetadata::file is not serialized</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Aug 2011 18:02:51 +0000</created>
                <updated>Thu, 25 Aug 2011 18:02:51 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-154] Github-PR-150 by tecbot: [XMLDriver] fixed an error in hydration classes when the name is not equal to the fieldName</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-154</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of &lt;/p&gt;
{username}
&lt;p&gt;:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/mongodb-odm/pull/150&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/mongodb-odm/pull/150&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="12950">MODM-154</key>
            <summary>Github-PR-150 by tecbot: [XMLDriver] fixed an error in hydration classes when the name is not equal to the fieldName</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Aug 2011 14:46:27 +0000</created>
                <updated>Sun, 21 Aug 2011 14:46:27 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-155] Github-PR-148 by roed: fixed generating of classes</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-155</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of &lt;/p&gt;
{username}
&lt;p&gt;:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/mongodb-odm/pull/148&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/mongodb-odm/pull/148&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;fixed the generating of classes based on xml files, changed ClassMetadata to ClassMetadataInfo in these files (as in the ORM tool/mapping)&lt;/p&gt;

&lt;p&gt;the following did not work, but works after these changes:&lt;br/&gt;
$cmf = new \Doctrine\ODM\MongoDB\Tools\DisconnectedClassMetadataFactory();	&lt;br/&gt;
$cmf-&amp;gt;setDocumentManager($this-&amp;gt;_dm);			&lt;br/&gt;
$cmf-&amp;gt;setConfiguration($this-&amp;gt;_dm-&amp;gt;getConfiguration());		&lt;br/&gt;
$driver = $this-&amp;gt;_dm-&amp;gt;getConfiguration()-&amp;gt;getMetadataDriverImpl();		&lt;/p&gt;

&lt;p&gt;$metadatas = $cmf-&amp;gt;getAllMetadata(); //this would break it&lt;/p&gt;

&lt;p&gt;// $this-&amp;gt;_dm is an instance of Doctrine\ODM\MongoDB\DocumentManager&lt;/p&gt;</description>
                <environment></environment>
            <key id="12951">MODM-155</key>
            <summary>Github-PR-148 by roed: fixed generating of classes</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Aug 2011 14:46:29 +0000</created>
                <updated>Sun, 21 Aug 2011 14:46:29 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-162] Introduction Tutorial,suitable version</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-162</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;HI all,&lt;/p&gt;

&lt;p&gt;I am working on a project where I would like to use mongoDB ODM. But while following this tutotorial : &lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/reference/introduction.html&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/reference/introduction.html&lt;/a&gt;, it appears to me that the download odm library doesn&apos;t work with the code: missing code or undefined classes. Therefore I woulld like to know what&apos;s the corresponding version mongodb ODM of the tutorial.&lt;/p&gt;

&lt;p&gt;Thank&apos;s in advance&lt;/p&gt;

&lt;p&gt;regards&lt;/p&gt;

&lt;p&gt;near&lt;/p&gt;</description>
                <environment>software</environment>
            <key id="13450">MODM-162</key>
            <summary>Introduction Tutorial,suitable version</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="near">Hugues Leunsa</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Feb 2012 11:02:37 +0000</created>
                <updated>Wed, 15 Feb 2012 11:02:37 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-136] Document&apos;s fields names are not properly converted to database names in a query</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-136</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>
&lt;p&gt;Mappings:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * @Field(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;date&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;scheduled_at&quot;&lt;/span&gt;)
 */
&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $scheduledAt;

/**
 * @Field(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;date&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;completed_at&quot;&lt;/span&gt;)
 */
&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $completedAt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Query:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;$qb-&amp;gt;field(&apos;scheduledAt&apos;)-&amp;gt;lte($now)
   -&amp;gt;addOr($qb-&amp;gt;expr()-&amp;gt;field(&apos;completedAt&apos;)-&amp;gt;lte($now))
   -&amp;gt;addOr($qb-&amp;gt;expr()-&amp;gt;field(&apos;completedAt&apos;)-&amp;gt;equals(&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;))
   -&amp;gt;sort(&apos;scheduledAt&apos;, &apos;asc&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Expected result:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;db.foo.find({
    &lt;span class=&quot;code-quote&quot;&gt;&quot;scheduled_at&quot;&lt;/span&gt;: { &lt;span class=&quot;code-quote&quot;&gt;&quot;$lte&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Date(...) }, 
    &lt;span class=&quot;code-quote&quot;&gt;&quot;$or&quot;&lt;/span&gt;: [ 
        { &lt;span class=&quot;code-quote&quot;&gt;&quot;completed_at&quot;&lt;/span&gt;: {  &lt;span class=&quot;code-quote&quot;&gt;&quot;$lte&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Date(...) } }, 
        { &lt;span class=&quot;code-quote&quot;&gt;&quot;completed_at&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; } ] 
})
.sort({ &lt;span class=&quot;code-quote&quot;&gt;&quot;scheduled_at&quot;&lt;/span&gt;: 1 });
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Actual result:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;db.foo.find({
    &lt;span class=&quot;code-quote&quot;&gt;&quot;scheduled_at&quot;&lt;/span&gt;: { &lt;span class=&quot;code-quote&quot;&gt;&quot;$lte&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Date(...) }, 
    &lt;span class=&quot;code-quote&quot;&gt;&quot;$or&quot;&lt;/span&gt;: [ 
        { &lt;span class=&quot;code-quote&quot;&gt;&quot;completedAt&quot;&lt;/span&gt;: {  &lt;span class=&quot;code-quote&quot;&gt;&quot;$lte&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Date(...) } }, 
        { &lt;span class=&quot;code-quote&quot;&gt;&quot;completedAt&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; } ] 
})
.sort({ &lt;span class=&quot;code-quote&quot;&gt;&quot;scheduledAt&quot;&lt;/span&gt;: 1 });
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;






</description>
                <environment></environment>
            <key id="12502">MODM-136</key>
            <summary>Document&apos;s fields names are not properly converted to database names in a query</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="rybakit">Eugene Leonovich</reporter>
                        <labels>
                    </labels>
                <created>Sun, 27 Mar 2011 09:13:03 +0000</created>
                <updated>Sun, 27 Mar 2011 09:13:03 +0000</updated>
                                                                            <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-134] Reference added twice</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-134</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;I have a listener who listens on onFlush event, &lt;br/&gt;
i have a document and change a property (integer) in it and call $uow-&amp;gt;recomputeSingleDocumentChangeSet().&lt;br/&gt;
The result is that all references are added twice.&lt;/p&gt;

&lt;p&gt;If i remove the call to  $uow-&amp;gt;recomputeSingleDocumentChangeSet() all is fine.&lt;/p&gt;


&lt;p&gt;Here&apos;s my document (notice references added twice on children property):&lt;/p&gt;


&lt;p&gt;array (&lt;br/&gt;
  &apos;children&apos; =&amp;gt; &lt;br/&gt;
  array (&lt;br/&gt;
    0 =&amp;gt; &lt;br/&gt;
    array (&lt;br/&gt;
      &apos;$ref&apos; =&amp;gt; &apos;block&apos;,&lt;br/&gt;
      &apos;$id&apos; =&amp;gt; new MongoId(&quot;4d8b663638b6180803000005&quot;),&lt;br/&gt;
      &apos;$db&apos; =&amp;gt; &apos;app_jules&apos;,&lt;br/&gt;
      &apos;_doctrine_class_name&apos; =&amp;gt; &apos;Design\\PageBundle\\Document&lt;br class=&quot;atl-forced-newline&quot; /&gt;StrategyBlock&apos;,&lt;br/&gt;
    ),&lt;br/&gt;
    1 =&amp;gt; &lt;br/&gt;
    array (&lt;br/&gt;
      &apos;$ref&apos; =&amp;gt; &apos;block&apos;,&lt;br/&gt;
      &apos;$id&apos; =&amp;gt; new MongoId(&quot;4d8b663638b6180803000005&quot;),&lt;br/&gt;
      &apos;$db&apos; =&amp;gt; &apos;app_jules&apos;,&lt;br/&gt;
      &apos;_doctrine_class_name&apos; =&amp;gt; &apos;Design\\PageBundle\\Document&lt;br class=&quot;atl-forced-newline&quot; /&gt;StrategyBlock&apos;,&lt;br/&gt;
    )&lt;br/&gt;
  ),&lt;br/&gt;
  &apos;order&apos; =&amp;gt; 0,&lt;br/&gt;
  &apos;parent&apos; =&amp;gt; &lt;br/&gt;
  array (&lt;br/&gt;
    &apos;$ref&apos; =&amp;gt; &apos;block&apos;,&lt;br/&gt;
    &apos;$id&apos; =&amp;gt; new MongoId(&quot;4d8b663638b6180803000003&quot;),&lt;br/&gt;
    &apos;$db&apos; =&amp;gt; &apos;app_jules&apos;,&lt;br/&gt;
    &apos;_doctrine_class_name&apos; =&amp;gt; &apos;Design\\PageBundle\\Document&lt;br class=&quot;atl-forced-newline&quot; /&gt;ContainerBlock&apos;,&lt;br/&gt;
  ),&lt;br/&gt;
  &apos;type&apos; =&amp;gt; &apos;container&apos;,&lt;br/&gt;
)&lt;/p&gt;


&lt;p&gt;EDIT: if i clear() the $children ArrayCollection before calling $uow-&amp;gt;recomputeSingleDocumentChangeSet() all is fine&lt;/p&gt;

&lt;p&gt;I tried to reproduce it in a test-case but the result wasn&apos;t successful&lt;/p&gt;</description>
                <environment></environment>
            <key id="12491">MODM-134</key>
            <summary>Reference added twice</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="gordonslondon">jules b</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Mar 2011 11:47:07 +0000</created>
                <updated>Fri, 25 Mar 2011 12:55:17 +0000</updated>
                                    <version>1.0.0BETA3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-131] Notice in Doctrine\MongoDB\GridFS::doInsert</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-131</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Notice: Undefined variable: file in /projects/tbi/vendors/doctrine/odm/lib/vendor/doctrine-mongodb/lib/Doctrine/MongoDB/GridFS.php on line 112&lt;/p&gt;</description>
                <environment>CentOS 5.5, PHP 5.3</environment>
            <key id="12464">MODM-131</key>
            <summary>Notice in Doctrine\MongoDB\GridFS::doInsert</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="vkaplich">Vitaliy Kaplich</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Mar 2011 14:14:59 +0000</created>
                <updated>Wed, 9 Mar 2011 14:14:59 +0000</updated>
                                    <version>1.0.0BETA3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-135] [Cursor] ReferenceMany sort mapping not working</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-135</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;I have a document like this:&lt;/p&gt;

&lt;p&gt;/** @Document */&lt;br/&gt;
class Page&lt;br/&gt;
{&lt;br/&gt;
	/** @Id */&lt;br/&gt;
	protected $id;&lt;/p&gt;

&lt;p&gt;	/** @ReferenceMany(sort=&lt;/p&gt;
{&quot;order&quot;=&quot;asc&quot;}
&lt;p&gt;) */&lt;br/&gt;
	protected $blocks;&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;If i have well understood things, i can do:&lt;/p&gt;

&lt;p&gt;$blocks = $dm-&amp;gt;getRepository(&apos;Page&apos;)&lt;del&gt;&amp;gt;find($id)&lt;/del&gt;&amp;gt;getBlocks();&lt;/p&gt;

&lt;p&gt;blocks should now be sorted by $order property.&lt;/p&gt;



&lt;p&gt;This behaviour doesn&apos;t seems to work (or maybe i&apos;m missing something). &lt;br/&gt;
In the attachment there&apos;s a test case&lt;/p&gt;

&lt;p&gt;i made the priority major because in my case i haven&apos;t found a workaround (i&apos;m using nested referenceMany, a child can have children,  which can have children, ..). &lt;/p&gt;</description>
                <environment>Macosx</environment>
            <key id="12498">MODM-135</key>
            <summary>[Cursor] ReferenceMany sort mapping not working</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="gordonslondon">jules b</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Mar 2011 19:10:05 +0000</created>
                <updated>Sat, 26 Mar 2011 07:58:32 +0000</updated>
                                    <version>1.0.0BETA3</version>
                                                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                                <attachments>
                    <attachment id="10961" name="MODM135.zip" size="5312" author="gordonslondon" created="Fri, 25 Mar 2011 19:10:05 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-144] Bi-Directional References Feature</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-144</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;I cant&#180;t reproduce the Bi-Directional References with my own example or the example of the documentation.&lt;br/&gt;
Perhaps the documentation is not up to date or their ist a bug.&lt;/p&gt;

&lt;p&gt;BlogPost.php&lt;br/&gt;
&amp;lt;?php&lt;/p&gt;

&lt;p&gt;/** @Document */&lt;br/&gt;
class BlogPost&lt;br/&gt;
{&lt;br/&gt;
    /** @Id */&lt;br/&gt;
    public $id;&lt;/p&gt;

&lt;p&gt;    /** @String */&lt;br/&gt;
    public $title;&lt;/p&gt;

&lt;p&gt;    /** @String */&lt;br/&gt;
    public $content;&lt;/p&gt;

&lt;p&gt;    /** @String */&lt;br/&gt;
    public $createtime;&lt;/p&gt;

&lt;p&gt;    /** @String */&lt;br/&gt;
    public $updatetime;&lt;/p&gt;

&lt;p&gt;    /** @ReferenceMany(targetDocument=&quot;PostComment&quot;, mappedBy=&quot;post&quot;) */&lt;br/&gt;
    private $comments;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;PostComment.php&lt;br/&gt;
&amp;lt;?php&lt;/p&gt;

&lt;p&gt;/** @Document */&lt;br/&gt;
class PostComment&lt;br/&gt;
{&lt;br/&gt;
    /** @Id */&lt;br/&gt;
    public $id;&lt;/p&gt;

&lt;p&gt;    /** @String */&lt;br/&gt;
    public $name;&lt;/p&gt;

&lt;p&gt;    /** @String */&lt;br/&gt;
    public $mail;&lt;/p&gt;

&lt;p&gt;    /** @String */&lt;br/&gt;
    public $content;&lt;/p&gt;

&lt;p&gt;    /** @String */&lt;br/&gt;
    public $createtime;&lt;/p&gt;

&lt;p&gt;    /** @String */&lt;br/&gt;
    public $updatetime;&lt;/p&gt;

&lt;p&gt;    /** @ReferenceOne(targetDocument=&quot;BlogPost&quot;, inversedBy=&quot;comments&quot;) */&lt;br/&gt;
    private $post;&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;CommentController.php&lt;br/&gt;
        // Save the Post&lt;br/&gt;
        $post = new BlogPost();&lt;br/&gt;
        $post-&amp;gt;setTitle = &apos;testtitle&apos;;&lt;br/&gt;
        //$post-&amp;gt;content = &apos;testcontent&apos;;&lt;br/&gt;
        //$post-&amp;gt;createdate = time();&lt;/p&gt;

&lt;p&gt;        $comment1 = new PostComment();&lt;br/&gt;
        $comment1-&amp;gt;title = &apos;testcommenttitle1&apos;;&lt;/p&gt;

&lt;p&gt;        $comment2 = new PostComment();&lt;br/&gt;
        $comment2-&amp;gt;title = &apos;testcommenttitle2&apos;;&lt;/p&gt;

&lt;p&gt;        $comment3 = new PostComment();&lt;br/&gt;
        $comment3-&amp;gt;title = &apos;testcommenttitle3&apos;;&lt;/p&gt;

&lt;p&gt;        $dm-&amp;gt;persist($comment1);&lt;br/&gt;
        $dm-&amp;gt;persist($comment2);&lt;br/&gt;
        $dm-&amp;gt;persist($comment3);&lt;br/&gt;
        $dm-&amp;gt;flush();&lt;/p&gt;

&lt;p&gt;        echo $post-&amp;gt;id;&lt;/p&gt;

&lt;p&gt;        /*$posts = $dm-&amp;gt;createQueryBuilder(&apos;BlogPost&apos;)&lt;br/&gt;
                        -&amp;gt;getQuery();*/&lt;/p&gt;

&lt;p&gt;        $post = $dm-&amp;gt;getRepository(&apos;BlogPost&apos;)-&amp;gt;find(&apos;4dd45739f563724c23000002&apos;);&lt;/p&gt;

&lt;p&gt;        Zend_Debug::dump($post);&lt;br/&gt;
        $comments = $post-&amp;gt;getComments();&lt;/p&gt;

&lt;p&gt;------------------------&lt;br/&gt;
In the documentation the example is&lt;br/&gt;
$post1-&amp;gt;setUser($user);&lt;br/&gt;
But the only working for me is:&lt;br/&gt;
$post-&amp;gt;setTitle = &apos;testtitle&apos;;&lt;/p&gt;

&lt;p&gt;Anyway, I can&#180;t get the Comments from the mongodb.&lt;br/&gt;
I always get this error.&lt;br/&gt;
Fatal error: Call to undefined method BlogPost::getComments()&lt;br/&gt;
This is a correct error message because BlogPost really dont have a getComments()&lt;br/&gt;
method. How do I get my Comments then?&lt;br/&gt;
Any help would be great.&lt;/p&gt;

&lt;p&gt;Greetings tronga&lt;/p&gt;</description>
                <environment>Zend Framework 1.11.6</environment>
            <key id="12647">MODM-144</key>
            <summary>Bi-Directional References Feature</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="tronga">Jan Gantzert</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 May 2011 23:49:19 +0000</created>
                <updated>Wed, 18 May 2011 23:49:19 +0000</updated>
                                    <version>1.0.0BETA3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-127] Update queries : update() required ?</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-127</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;In the documentation exemples for update queries : &lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html#update-queries&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html#update-queries&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;it doesn&apos;t mention a update() function call any more in update queries.&lt;/p&gt;

&lt;p&gt;Did I miss something?&lt;/p&gt;
</description>
                <environment></environment>
            <key id="12414">MODM-127</key>
            <summary>Update queries : update() required ?</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="billybob">Billy Bob</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 Feb 2011 00:04:26 +0000</created>
                <updated>Wed, 23 Feb 2011 00:04:26 +0000</updated>
                                    <version>1.0.0BETA2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-126] lessThanOrEq() renamed in lte()</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-126</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;The lessThanOrEq() function referenced in the documentation does not exist ay more, it was replaced by lte().&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/mongodb_odm/1.0/en/reference/query-builder-api.html&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12413">MODM-126</key>
            <summary>lessThanOrEq() renamed in lte()</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="billybob">Billy Bob</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 Feb 2011 23:27:07 +0000</created>
                <updated>Tue, 22 Feb 2011 23:27:07 +0000</updated>
                                    <version>1.0.0BETA2</version>
                                <fixVersion>1.0.0BETA2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[MODM-130] @ChangeTrackingPolicy notation is ignored in @MappedSuperclass</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-130</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;I am not sure if it&apos;s supposed to be that @MappedSuperclass document can define @ChangeTrackingPolicy for multiple documents but in fact it does not work.&lt;/p&gt;

&lt;p&gt;In other words in the case below:&lt;br/&gt;
===================================================&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@MappedSuperclass&lt;/li&gt;
	&lt;li&gt;@InheritanceType(&quot;COLLECTION_PER_CLASS&quot;)&lt;/li&gt;
	&lt;li&gt;@ChangeTrackingPolicy(&quot;DEFERRED_EXPLICIT&quot;)&lt;br/&gt;
 */&lt;br/&gt;
abstract class MappedDocument&lt;br/&gt;
{&lt;br/&gt;
}&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@Document(collection=&quot;chart&quot;)&lt;br/&gt;
 */&lt;br/&gt;
class Chart extends MappedDocument&lt;br/&gt;
{&lt;br/&gt;
}&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;===================================================&lt;/p&gt;

&lt;p&gt;class Chart &lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;has InheritanceType = INHERITANCE_TYPE_COLLECTION_PER_CLASS which is expected&lt;/li&gt;
	&lt;li&gt;but  ChangeTrackingPolicy = CHANGETRACKING_DEFERRED_IMPLICIT (value by default) which is NOT expected.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;At the same time if to define ChangeTrackingPolicy in the Chart class instead of MappedDocument it works as expected.&lt;/p&gt;
</description>
                <environment>CentOS 5.5, PHP 5.3</environment>
            <key id="12443">MODM-130</key>
            <summary>@ChangeTrackingPolicy notation is ignored in @MappedSuperclass</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="vkaplich">Vitaliy Kaplich</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Mar 2011 10:56:24 +0000</created>
                <updated>Wed, 2 Mar 2011 10:56:24 +0000</updated>
                                    <version>1.0.0BETA1</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>