<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 09:25:33 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-1069/DDC-1069.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-1069] setParameter[s]() examples on DQL page uses &quot;:&quot; even though that is not supported</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1069</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/docs/orm/2.0/en/reference/dql-doctrine-query-language.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/orm/2.0/en/reference/dql-doctrine-query-language.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Among others:&lt;br/&gt;
$query = $em-&amp;gt;createQuery(&apos;SELECT u from ForumUser u WHERE (u.username = :name OR u.username = :name2) AND u.id = :id&apos;);&lt;br/&gt;
$query-&amp;gt;setParameters(array(&lt;br/&gt;
    &apos;:name&apos; =&amp;gt; &apos;Bob&apos;,&lt;br/&gt;
    &apos;:name2&apos; =&amp;gt; &apos;Alice&apos;,&lt;br/&gt;
    &apos;:id&apos; =&amp;gt; 321,&lt;br/&gt;
));&lt;/p&gt;

&lt;p&gt;Despite this does not work and doc says &quot;When referencing the parameters in Query#setParameter($param, $value) both named and positional parameters are used without their prefixies.&quot; on same page.&lt;br/&gt;
(side note: prefixies =&amp;gt; prefixes)&lt;/p&gt;

&lt;p&gt;Fresh on doctrine 2.0 you typically copy past examples to try out stuff, and when exception then says that &quot;:id&quot; is not a valid param on this query you end up not knowing what went wrong.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12468">DDC-1069</key>
            <summary>setParameter[s]() examples on DQL page uses &quot;:&quot; even though that is not supported</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="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="anderom">Andr&#233; R.</reporter>
                        <labels>
                    </labels>
                <created>Sun, 13 Mar 2011 10:09:13 +0000</created>
                <updated>Fri, 18 Nov 2011 13:20:13 +0000</updated>
                    <resolved>Tue, 29 Mar 2011 13:38:19 +0000</resolved>
                            <version>2.0.2</version>
                                <fixVersion>2.0.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15568" author="mridgway" created="Mon, 21 Mar 2011 22:05:35 +0000"  >&lt;p&gt;I posted a simple patch for this at &lt;a href=&quot;https://github.com/doctrine/orm-documentation/pull/20&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/orm-documentation/pull/20&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="15569" author="anderom" created="Tue, 22 Mar 2011 05:35:25 +0000"  >&lt;p&gt;Looks good!&lt;/p&gt;</comment>
                    <comment id="15625" author="beberlei" created="Tue, 29 Mar 2011 13:38:19 +0000"  >&lt;p&gt;Resolved&lt;/p&gt;</comment>
                    <comment id="16858" author="naitsirch" created="Fri, 18 Nov 2011 13:20:13 +0000"  >&lt;p&gt;You can find the same error in the &lt;b&gt;PHPDoc&lt;/b&gt; of the methods &lt;b&gt;setParameter(...)&lt;/b&gt; and &lt;b&gt;setParameters(..)&lt;/b&gt; in class &lt;b&gt;Doctrine\ORM\QueryBuilder&lt;/b&gt;.&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;* &amp;lt;code&amp;gt;
*     $qb = $em-&amp;gt;createQueryBuilder()
*         -&amp;gt;select(&apos;u&apos;)
*         -&amp;gt;from(&apos;User&apos;, &apos;u&apos;)
*         -&amp;gt;where(&apos;u.id = :user_id&apos;)
*         -&amp;gt;setParameter(&apos;:user_id&apos;, 1);
* &amp;lt;/code&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It would be nice if this will be fixed, because it is confusing, if you look at the autocomplete notice of the IDEs.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>