<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 23:31:43 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-2229/DDC-2229.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-2229] Undefined method</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2229</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;There is an undefined method called in Doctrine\ORM\Query\SqlWalker&lt;/p&gt;

&lt;p&gt;Fatal error: Call to undefined method Doctrine\ORM\Query\AST\PathExpression::isSimpleArithmeticExpression() in vendor\doctrine\orm\lib\Doctrine\ORM\Query\SqlWalker.php on line 2091&lt;/p&gt;</description>
                <environment></environment>
            <key id="14366">DDC-2229</key>
            <summary>Undefined method</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="drak">Karma Dordrak (Drak)</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Jan 2013 14:55:56 +0000</created>
                <updated>Mon, 22 Apr 2013 11:17:53 +0000</updated>
                    <resolved>Mon, 8 Apr 2013 20:26:25 +0000</resolved>
                            <version>2.3</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>6</watches>
                        <comments>
                    <comment id="19294" author="fabio.bat.silva" created="Sat, 12 Jan 2013 21:01:00 +0000"  >&lt;p&gt;Hi Karma&lt;/p&gt;

&lt;p&gt;Could you provide the failing DQL ?&lt;/p&gt;

&lt;p&gt;Cheers&lt;/p&gt;</comment>
                    <comment id="19334" author="drak" created="Fri, 18 Jan 2013 15:57:03 +0000"  >&lt;p&gt;It&apos;s generating SQL from a Doctrine Collection in a proxy class. Here is a link to the example: &lt;a href=&quot;https://github.com/zikula/core/pull/674#discussion_r2696186&quot; class=&quot;external-link&quot;&gt;https://github.com/zikula/core/pull/674#discussion_r2696186&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The SQL being generated is &lt;/p&gt;

&lt;p&gt;    `SELECT t0.name AS name1, t0.value AS value2, t0.user_id AS user_id3 FROM users_attributes t0 WHERE t0.user_id = ?`&lt;/p&gt;

&lt;p&gt;The ? should be the value 2, but for some reason it&apos;s not being added. I&apos;ve checked the files in the stack-trace below and the right values are entering into the process, just the wrong SQL seems to be generated.&lt;/p&gt;

&lt;p&gt;Exception Trace&lt;br/&gt;
#0 Exception thrown in C:\xampp\htdocs\core13\src\vendor\doctrine\dbal\lib\Doctrine\DBAL\DBALException.php, line 47.&lt;br/&gt;
#1 C:\xampp\htdocs\core13\src\vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\BasicEntityPersister.php(1599): Doctrine\DBAL\Connection-&amp;gt;executeQuery(&apos;SELECT t0.name ...&apos;, Array, Array)&lt;br/&gt;
#2 C:\xampp\htdocs\core13\src\vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\BasicEntityPersister.php(1558): Doctrine\ORM\Persisters\BasicEntityPersister-&amp;gt;getOneToManyStatement(Array, Object(Users\Entity\User))&lt;br/&gt;
#3 C:\xampp\htdocs\core13\src\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php(2673): Doctrine\ORM\Persisters\BasicEntityPersister-&amp;gt;loadOneToManyCollection(Array, Object(Users\Entity\User), Object(Doctrine\ORM\PersistentCollection))&lt;br/&gt;
#4 C:\xampp\htdocs\core13\src\vendor\doctrine\orm\lib\Doctrine\ORM\PersistentCollection.php(224): Doctrine\ORM\UnitOfWork-&amp;gt;loadCollection(Object(Doctrine\ORM\PersistentCollection))&lt;br/&gt;
#5 C:\xampp\htdocs\core13\src\vendor\doctrine\orm\lib\Doctrine\ORM\PersistentCollection.php(576): Doctrine\ORM\PersistentCollection-&amp;gt;initialize()&lt;br/&gt;
#6 C:\xampp\htdocs\core13\src\lib\util\UserUtil.php(1152): Doctrine\ORM\PersistentCollection-&amp;gt;getIterator()&lt;br/&gt;
#7 C:\xampp\htdocs\core13\src\lib\util\UserUtil.php(2007): UserUtil::getVars(&apos;admin&apos;, false, &apos;uname&apos;, false)&lt;/p&gt;</comment>
                    <comment id="19346" author="fabio.bat.silva" created="Sun, 20 Jan 2013 12:03:07 +0000"  >&lt;p&gt;Hi Drak,&lt;/p&gt;

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

&lt;p&gt;Cheers&lt;/p&gt;</comment>
                    <comment id="19518" author="asm89" created="Sun, 10 Feb 2013 11:48:17 +0000"  >&lt;p&gt;ping! &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    <comment id="19541" author="hussdl" created="Thu, 14 Feb 2013 17:53:57 +0000"  >&lt;p&gt;&lt;tt&gt;SqlWalker::walkInExpression()&lt;/tt&gt; does this:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;$sql = $this-&amp;gt;walkArithmeticExpression($inExpr-&amp;gt;expression)&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;However, &lt;tt&gt;$inExpr-&amp;gt;expression&lt;/tt&gt; could be an instance of &lt;tt&gt;PathExpression&lt;/tt&gt;. The grammar allows this case:&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-sql&quot;&gt;InExpression             ::= SingleValuedPathExpression [&lt;span class=&quot;code-quote&quot;&gt;&quot;NOT&quot;&lt;/span&gt;] &lt;span class=&quot;code-quote&quot;&gt;&quot;IN&quot;&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;(&quot;&lt;/span&gt; (InParameter {&lt;span class=&quot;code-quote&quot;&gt;&quot;,&quot;&lt;/span&gt; InParameter}* | Subselect) &lt;span class=&quot;code-quote&quot;&gt;&quot;)&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;tt&gt;PathExpression&lt;/tt&gt; and &lt;tt&gt;ArithmeticExpression&lt;/tt&gt; both extend &lt;tt&gt;Node&lt;/tt&gt;, but a &lt;tt&gt;PathExpression&lt;/tt&gt; is not an &lt;tt&gt;ArithmeticExpression&lt;/tt&gt;, and therefore it has no method &lt;tt&gt;isSimpleArithmeticExpression&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;If you still need a failing test case, I&apos;ll write one when I get home from work.&lt;/p&gt;</comment>
                    <comment id="19542" author="fabio.bat.silva" created="Thu, 14 Feb 2013 18:21:38 +0000"  >&lt;p&gt;Please Daniel Huss, A test case will be very useful..&lt;/p&gt;</comment>
                    <comment id="19544" author="hussdl" created="Fri, 15 Feb 2013 14:17:36 +0000"  >&lt;p&gt;failing test case&lt;/p&gt;</comment>
                    <comment id="19927" author="hussdl" created="Tue, 2 Apr 2013 10:02:11 +0000"  >&lt;p&gt;Bug still present in release 2.3.3&lt;/p&gt;

&lt;p&gt;Is someone taking care of this? It seems easy enough to fix.&lt;/p&gt;</comment>
                    <comment id="19928" author="ocramius" created="Tue, 2 Apr 2013 10:06:25 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=hussdl&quot; class=&quot;user-hover&quot; rel=&quot;hussdl&quot;&gt;Daniel Huss&lt;/a&gt; you can open a PR with the attached patch + test. Can you do it or should I take care of it?&lt;/p&gt;</comment>
                    <comment id="19931" author="hussdl" created="Tue, 2 Apr 2013 12:55:35 +0000"  >&lt;p&gt;Please take care of it for me this time. I&apos;d rather avoid the git setup until I have a significant contribution to make.&lt;/p&gt;</comment>
                    <comment id="19963" author="beberlei" created="Mon, 8 Apr 2013 20:26:25 +0000"  >&lt;p&gt;This is invalid, you need to set the path expression differently, this is pseudo code:&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-keyword&quot;&gt;new&lt;/span&gt; ArtihmeticExpression(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; SimpleArithmeticExpression(arithmeticsTerms =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; PathExpression)));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="20088" author="hussdl" created="Mon, 22 Apr 2013 11:17:53 +0000"  >&lt;p&gt;Could this be bug in the DQL grammar, then? If I&apos;m not mistaken, the resolution of an InExpression cannot involve an ArithmeticPrimary non-terminal. I find the correct solution as shown by Benjamin Eberlei to be quite astonishing, since a path expression like &quot;alias.field&quot; is not something I&apos;d associate with the term &quot;arithmetic&quot;.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11521" name="SqlWalker.patch" size="707" author="hussdl" created="Tue, 2 Apr 2013 10:02:11 +0000" />
                    <attachment id="11378" name="SqlWalkerTest.php" size="1348" author="hussdl" created="Fri, 15 Feb 2013 14:17:36 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>