<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 18 14:01:45 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/si/jira.issueviews:issue-xml/MODM-159/MODM-159.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[MODM-159] Querying a collection by Embedded objects identifier not working.</title>
                <link>http://www.doctrine-project.org/jira/browse/MODM-159</link>
                <project id="10044" key="MODM">Doctrine MongoDB ODM</project>
                        <description>&lt;p&gt;Reference objects identifiers are stored as &apos;$id&apos; in database when Embedded objects identifiers are stored as &apos;_id&apos;. When querying a collection by embedded objects identifier, DocumentPersister-&amp;gt;prepareQueryValue() converts it to &apos;$id&apos; although it is stored in DB as &apos;_id&apos;. So querying for reference object ids work but embedded objects do not.&lt;/p&gt;

&lt;p&gt;DocumentPersister-&amp;gt;prepareQueryValue() first checks if field has TargetDocument mapping, if it is true it checks if field is target document&apos;s identifier, if this also returns true&lt;br/&gt;
it prepares the field as &apos;$id&apos; without looking at if it is Embedded or Reference object ... If TargetDocument it is a Reference object it works since Reference objects identifiers are stored as &apos;$id&apos; but if TargetDocument is Embedded object, query returns empty as theres no field such &apos;$id&apos; in EmbeddedObject, identifier is &apos;_id&apos; instead..&lt;/p&gt;

&lt;p&gt;Is this a bug / issue or am i missing something?&lt;/p&gt;</description>
                <environment>OS:10.8.0 OSX&lt;br/&gt;
PHP Official Version 5.3.8&lt;br/&gt;
MongoDB : 2.0.1&lt;br/&gt;
</environment>
            <key id="13228">MODM-159</key>
            <summary>Querying a collection by Embedded objects identifier 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="dahuda">Dahuda Unal</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Nov 2011 03:47:12 +0000</created>
                <updated>Wed, 30 Nov 2011 03:56:14 +0000</updated>
                                    <version>1.0.0BETA3</version>
                                                <component>Persister</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>