<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 11:50:47 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/DDC-2105/DDC-2105.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>[DDC-2105] Error when rendering DQL query</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2105</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I&apos;m using Doctrine with Symfony 2.1. Everything was working OK in Symfony 2.0 so I think I was using Doctrine 2.2. Now I&apos;m using Doctrine 2.3-dev (packagist) and when I run the following query in a EntityRepository:&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;
$em-&amp;gt;createQuery(&apos;SELECT u, tc FROM XBundle:X tc JOIN tc.usuario u JOIN tc.tax t WHERE tc.timestamp &amp;gt;= :date_from AND tc.timestamp &amp;lt;= :date_to AND t.type = :x GROUP BY tc.usuario&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Nothing happens, getResult() just returns array(0){}&lt;/p&gt;

&lt;p&gt;I&apos;ve done \Doctrine\Common\Util\Debug::dump($query); and this is the 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;
object(stdClass)#487 (18) {
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;__CLASS__&quot;&lt;/span&gt;]=&amp;gt;
  string(18) &lt;span class=&quot;code-quote&quot;&gt;&quot;Doctrine\ORM\Query&quot;&lt;/span&gt;
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;_state&quot;&lt;/span&gt;]=&amp;gt;
  &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(1)
  [&lt;span class=&quot;code-quote&quot;&gt;&quot;_dql&quot;&lt;/span&gt;]=&amp;gt;
  string(180) &quot;SELECT u, tc FROM XBundle:X tc JOIN tc.usuario u JOIN tc.tax t WHERE tc.timestamp &amp;gt;= :date_from AND tc.timestamp Marcos:project marcos$ 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;As you can see something happens because the dql query got cropped and seems like Doctrine is not working properly...&lt;/p&gt;

&lt;p&gt;If I change &apos;WHERE tc.timestamp &amp;gt;= :date_from AND tc.timestamp &amp;lt;= :date_to&apos; for &apos;WHERE tc.timestamp BETWEEN :date_from AND :date_to&apos;, then the query is run without any problem and the debug dump function shows a complete debug of $query.&lt;/p&gt;
</description>
                <environment>Mac OS X Mountain Lion&lt;br/&gt;
PHP 5.3.14 (cli)</environment>
            <key id="14170">DDC-2105</key>
            <summary>Error when rendering DQL 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="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="marcosgdf">Marcos Garc&#237;a</reporter>
                        <labels>
                        <label>dql</label>
                    </labels>
                <created>Fri, 26 Oct 2012 11:38:14 +0000</created>
                <updated>Sun, 23 Dec 2012 00:04:48 +0000</updated>
                    <resolved>Sun, 23 Dec 2012 00:04:48 +0000</resolved>
                            <version>2.3</version>
                                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18896" author="fabio.bat.silva" created="Mon, 29 Oct 2012 11:47:22 +0000"  >&lt;p&gt;Hi Marcos,&lt;/p&gt;

&lt;p&gt;Could you try to add a failing test case ?&lt;/p&gt;

&lt;p&gt;Thanks ...&lt;/p&gt;</comment>
                    <comment id="19173" author="marcosgdf" created="Sun, 23 Dec 2012 00:04:23 +0000"  >&lt;p&gt;Hi Fabio,&lt;/p&gt;

&lt;p&gt;I&apos;ve updated Doctrine and now it seems that everything works OK...&lt;/p&gt;

&lt;p&gt;Thank you for your time... (and sorry) :S&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>