<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 04:54:36 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-136/MODM-136.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-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>
</channel>
</rss>