<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Mon May 20 18:29:39 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-2285/DDC-2285.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-2285] Repeating the same query with different parameter value returns the same results</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2285</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&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;
$activeAdsCustomers = \Ez\Registry::getDoctrineEntityManager()
    -&amp;gt;createQuery( &lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT c, a FROM \Spot101\Model\Ad\Customer c JOIN c.ads a WHERE a.status = :status&quot;&lt;/span&gt; )
    -&amp;gt;setParameter( &lt;span class=&quot;code-quote&quot;&gt;&quot;status&quot;&lt;/span&gt;, \Spot101\Model\Ad\Status::ACTIVE )
    -&amp;gt;getResult();

$inactiveAdsCustomers = \Ez\Registry::getDoctrineEntityManager()
    -&amp;gt;createQuery( &lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT c, a FROM \Spot101\Model\Ad\Customer c JOIN c.ads a WHERE a.status = :status&quot;&lt;/span&gt; )
    -&amp;gt;setParameter( &lt;span class=&quot;code-quote&quot;&gt;&quot;status&quot;&lt;/span&gt;, \Spot101\Model\Ad\Status::INACTIVE )
    -&amp;gt;getResult();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Having the code above I am getting the same results for $inactiveAdsCustomers as I get for $activeAdsCustomers. And when I try hydrating the results everything works so fine.&lt;/p&gt;

&lt;p&gt;Both queries look the same except the value provided for the &quot;status&quot; parameter.&lt;/p&gt;</description>
                <environment>Ubuntu 12.10, Zend Server CE</environment>
            <key id="14465">DDC-2285</key>
            <summary>Repeating the same query with different parameter value returns the same results</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="mehdone">Mehdi Bakhtiari</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Feb 2013 04:38:32 +0000</created>
                <updated>Fri, 8 Feb 2013 08:26:18 +0000</updated>
                    <resolved>Fri, 8 Feb 2013 08:26:18 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>DQL</component>
                <component>Mapping Drivers</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19485" author="ocramius" created="Fri, 8 Feb 2013 08:26:18 +0000"  >&lt;p&gt;You are hydrating joined and filtered resultsets. You should never do this, as this will hydrate an invalid association into your objects.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>