<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu Jun 20 01:45: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/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+DDC+AND+updated%3E%3D-1w+ORDER+BY+updated+DESC&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+DDC+AND+updated%3E%3D-1w+ORDER+BY+updated+DESC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="23" total="23"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-2519] Unable to DQL SELECT PARTIAL entity with association identifier</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2519</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Entity\Person: id, name, etc&lt;br/&gt;
Entity\User: person, admin, etc  (person is the primary and association key)&lt;/p&gt;

&lt;p&gt;Trying DQL: &lt;br/&gt;
 SELECT PARTIAL u.&lt;/p&gt;
{person,admin}
&lt;p&gt; FROM Entity\User u&lt;br/&gt;
will fail.&lt;/p&gt;</description>
                <environment>Ubuntu, OSX, PHP5.4.x</environment>
            <key id="15066">DDC-2519</key>
            <summary>Unable to DQL SELECT PARTIAL entity with association identifier</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="baohx2000">Gordon Forsythe</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Jun 2013 23:37:45 +0000</created>
                <updated>Wed, 19 Jun 2013 23:37:45 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1398] loading one item at a time when indexBy and EXTRA_LAZY fetch mode is used on a collection</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1398</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;collection-&amp;gt;get($key)&lt;/p&gt;

&lt;p&gt;Atm in 2.1.2 this is loading the entire collection. It would be really handy that it would extra lazy load only one item using the association and indexBy fields and given key value (if collection is not initialized and the key havent been loaded yet ofc)&lt;/p&gt;

&lt;p&gt;Am i making sense with this? &lt;/p&gt;</description>
                <environment></environment>
            <key id="13053">DDC-1398</key>
            <summary>loading one item at a time when indexBy and EXTRA_LAZY fetch mode is used on a collection</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="hypno">Reio Piller</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Sep 2011 18:34:38 +0000</created>
                <updated>Wed, 19 Jun 2013 18:56:58 +0000</updated>
                                                    <fixVersion>2.x</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>3</votes>
                        <watches>5</watches>
                        <comments>
                    <comment id="17075" author="guilhermeblanco" created="Tue, 20 Dec 2011 22:22:20 +0000"  >&lt;p&gt;Updating fix version&lt;/p&gt;</comment>
                    <comment id="17526" author="gcaseres" created="Mon, 5 Mar 2012 22:02:25 +0000"  >&lt;p&gt;Is there any fix for this? i have the same problem.&lt;/p&gt;</comment>
                    <comment id="17544" author="deatheriam" created="Sat, 10 Mar 2012 16:29:38 +0000"  >&lt;p&gt;It makes a perfect sense here, I wish it was possible, it would give us a room for even more optimization. Any input on the issue from the developers?&lt;/p&gt;</comment>
                    <comment id="20592" author="sandermarechal" created="Wed, 19 Jun 2013 14:20:49 +0000"  >&lt;p&gt;Any progress on this? I&apos;d love to have get() that works on EXTRA_LAZY collections.&lt;/p&gt;</comment>
                    <comment id="20595" author="ocramius" created="Wed, 19 Jun 2013 18:56:58 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=sandermarechal&quot; class=&quot;user-hover&quot; rel=&quot;sandermarechal&quot;&gt;Sander Marechal&lt;/a&gt; pull requests are welcome &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>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2518] [GH-704] added badges stable release and total downloads</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2518</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of liuggio:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/704&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/704&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;


&lt;p&gt;you can see the preview here: &lt;a href=&quot;https://github.com/liuggio/doctrine2/tree/patch-1&quot; class=&quot;external-link&quot;&gt;https://github.com/liuggio/doctrine2/tree/patch-1&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15064">DDC-2518</key>
            <summary>[GH-704] added badges stable release and total downloads</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Jun 2013 14:42:45 +0000</created>
                <updated>Wed, 19 Jun 2013 18:38:49 +0000</updated>
                    <resolved>Wed, 19 Jun 2013 18:38:49 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20593" author="doctrinebot" created="Wed, 19 Jun 2013 16:02:42 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-704&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/704&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/704&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20594" author="ocramius" created="Wed, 19 Jun 2013 18:38:49 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/1382d766b09a04d504871bb50d519575ac553136&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/1382d766b09a04d504871bb50d519575ac553136&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2517] [GH-703] Clear visitedCollections</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2517</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of shulcsm:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/703&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/703&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Visited collections are cleared only in commit(). Commit clears up only if it actually has something to do. Processing large amounts of records without changing them cause visitedCollections to grow without any way of clearing.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15063">DDC-2517</key>
            <summary>[GH-703] Clear visitedCollections</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Jun 2013 13:35:15 +0000</created>
                <updated>Wed, 19 Jun 2013 13:35:15 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2516] Undefined offset in ObjectHydrator while working with iterableResult</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2516</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Following this documentation page &lt;a href=&quot;http://doctrine-orm.readthedocs.org/en/2.0.x/reference/batch-processing.html#iterating-large-results-for-data-processing&quot; class=&quot;external-link&quot;&gt;http://doctrine-orm.readthedocs.org/en/2.0.x/reference/batch-processing.html#iterating-large-results-for-data-processing&lt;/a&gt; I tried to create a batch process on 75k entities. But an error came in the ObjectHydrator on line 511 there&apos;s an Undefined offset. Now, i just use the SimpleObjectHydrator and it solve the problem. but i&apos;m wondering if it&apos;s a real bug or just a miss use of Doctrine.&lt;br/&gt;
Reproduce this error could be hard so ask if you want me to give you more informations about it.&lt;/p&gt;</description>
                <environment>using Symfony2</environment>
            <key id="15062">DDC-2516</key>
            <summary>Undefined offset in ObjectHydrator while working with iterableResult</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="johanny">Johanny Clerc-Renaud</reporter>
                        <labels>
                        <label>orm</label>
                    </labels>
                <created>Wed, 19 Jun 2013 12:20:16 +0000</created>
                <updated>Wed, 19 Jun 2013 12:20:16 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2515] Schema tool ignores index names in mapping file and uses generated name</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2515</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have defined an index on a foreign key colum in my .dcm.xml mapping file:&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-xml&quot;&gt;
&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;indexes&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;index name=&lt;span class=&quot;code-quote&quot;&gt;&quot;ix_date_created__client_id&quot;&lt;/span&gt; columns=&lt;span class=&quot;code-quote&quot;&gt;&quot;date_created,client_id&quot;&lt;/span&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;code-tag&quot;&gt;&amp;lt;index name=&lt;span class=&quot;code-quote&quot;&gt;&quot;ix_user_id&quot;&lt;/span&gt; columns=&lt;span class=&quot;code-quote&quot;&gt;&quot;user_id&quot;&lt;/span&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;/indexes&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However, the resulting CREATE TABLE statement includes:&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;
    INDEX IDX_4848DD9FA76ED395 (user_id), 
    INDEX IDX_4848DD9F4239E22F (accessgroup_id), 
    INDEX IDX_4848DD9FD2112630 (usergroup_id), 
    INDEX ix_date_created__client_id (date_created, client_id), 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So Doctrine seems to be auto-generating indexes for all foreign key columns. I&apos;m assuming this is a feature, even though I&apos;d argue that there are real-life examples where the mere presence of a foreign key constraint does not justify indexing that column. &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;

&lt;p&gt;Anyway, the expected behavior is that Doctrine does not replace existing indexes with generated ones. I will attach a failing test case unless this bug is immediately dismissed as wontfix.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15060">DDC-2515</key>
            <summary>Schema tool ignores index names in mapping file and uses generated name</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="hussdl">Daniel Huss</reporter>
                        <labels>
                    </labels>
                <created>Tue, 18 Jun 2013 12:17:50 +0000</created>
                <updated>Tue, 18 Jun 2013 12:17:50 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>ORM</component>
                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2313] Deep clone for DBAL QueryBuilder</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2313</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This is basically a duplicate of another issue I stumbled across lately but cannot find here again. It added a __clone() function to the ORM QueryBuilder to allow this use case:&lt;br/&gt;
Create a base query and derive two different queries from it.&lt;/p&gt;

&lt;p&gt;I adopted the code for the DBAL QueryBuilder which is suffering the same issue (e.g. expressions were not cloned but shared between instances). The code is tested at least for my limited use 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-java&quot;&gt;
    /**
     * Deep clone of all expression objects in the SQL parts.
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; void
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __clone()
    {
        foreach ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;sqlParts as $part =&amp;gt; $elements) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (is_array($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;sqlParts[$part])) {
                foreach ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;sqlParts[$part] as $idx =&amp;gt; $element) {
                    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (is_object($element)) {
                        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;sqlParts[$part][$idx] = clone $element;
                    }
                }
            } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (is_object($elements)) {
                $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;sqlParts[$part] = clone $elements;
            }
        }

        $params = array();

        foreach ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;params as $param) {
            $params[] = clone $param;
        }

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;params = $params;
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14541">DDC-2313</key>
            <summary>Deep clone for DBAL QueryBuilder</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="tcm">Tim Mundt</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Feb 2013 22:33:34 +0000</created>
                <updated>Tue, 18 Jun 2013 07:10:36 +0000</updated>
                    <resolved>Tue, 18 Jun 2013 07:10:36 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20462" author="tcm" created="Mon, 3 Jun 2013 06:30:45 +0000"  >&lt;p&gt;Thanks for adding the code tags. Just updated my doctrine to 2.4-RC1 and did not find this in there. Would be nice to see this in the new version. Any obstacles I could be of help with?&lt;/p&gt;</comment>
                    <comment id="20463" author="ocramius" created="Mon, 3 Jun 2013 07:18:39 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=tcm&quot; class=&quot;user-hover&quot; rel=&quot;tcm&quot;&gt;Tim Mundt&lt;/a&gt;, there&apos;s an open PR at &lt;a href=&quot;https://github.com/doctrine/dbal/pull/327&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/327&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20591" author="beberlei" created="Tue, 18 Jun 2013 07:10:36 +0000"  >&lt;p&gt;Fixed in 2.4&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="15017">DBAL-537</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2503] [GH-695] Implemented support for RepositoryFactory.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2503</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of guilhermeblanco:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/695&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/695&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This allows anyone to override the default behavior to load Repositories.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15045">DDC-2503</key>
            <summary>[GH-695] Implemented support for RepositoryFactory.</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Jun 2013 01:48:26 +0000</created>
                <updated>Tue, 18 Jun 2013 03:14:47 +0000</updated>
                    <resolved>Tue, 18 Jun 2013 03:14:47 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20572" author="doctrinebot" created="Fri, 14 Jun 2013 16:19:50 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-695&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/695&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/695&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20588" author="fabio.bat.silva" created="Tue, 18 Jun 2013 03:14:47 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/7903a2b5139e51b5dd7ed5ae164f7e0f3685dea7&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/7903a2b5139e51b5dd7ed5ae164f7e0f3685dea7&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2513] [GH-702] ANSI compliant quote strategy</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2513</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of FabioBatSilva:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/702&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/702&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="15057">DDC-2513</key>
            <summary>[GH-702] ANSI compliant quote strategy</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 18 Jun 2013 02:03:12 +0000</created>
                <updated>Tue, 18 Jun 2013 02:03:12 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2512] Lifecycle callbacks</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2512</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I would like to know if the only one thing i need to save an entity in a lifecycle listener is the $unitOfWork-&amp;gt;scheduleForInsert($entity).&lt;/p&gt;

&lt;p&gt;My requirement is to save a log in every action in the DB. So i need to save the old entity and the new entity in the DB. I am making this in the preupdate listener:&lt;/p&gt;

&lt;p&gt;    $log = $this-&amp;gt;util-&amp;gt;createLog($entity-&amp;gt;serialize(),&quot;Current Object&quot;);             &lt;br/&gt;
    $unitOfWork    = $this-&amp;gt;wrapped-&amp;gt;getUnitOfWork();                &lt;br/&gt;
    $unitOfWork-&amp;gt;scheduleForInsert($log);&lt;/p&gt;

&lt;p&gt;But this log is never saved. Do i need something else to persist this new entity?.&lt;/p&gt;

&lt;p&gt;Thanks for your help.&lt;/p&gt;</description>
                <environment>windows xp</environment>
            <key id="15056">DDC-2512</key>
            <summary>Lifecycle callbacks</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="pcastrotigre">Petter Castro</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Jun 2013 21:12:37 +0000</created>
                <updated>Mon, 17 Jun 2013 23:18:32 +0000</updated>
                    <resolved>Mon, 17 Jun 2013 23:18:32 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20586" author="ocramius" created="Mon, 17 Jun 2013 23:17:39 +0000"  >&lt;p&gt;It is not safe to schedule operations while they are happening. Please use the onFlush event instead, as described in &lt;a href=&quot;http://stackoverflow.com/questions/15092965/create-entity-on-entitiy-flush&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/15092965/create-entity-on-entitiy-flush&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Copying the example for reference:&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;namespace YourApp\Subscriber;

use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\OnFlushEventArgs;
use Doctrine\ORM\Events;
use YourApp\Entity\Issue;
use YourApp\Entity\IssueLog;

class IssueUpdateSubscriber &lt;span class=&quot;code-keyword&quot;&gt;implements&lt;/span&gt; EventSubscriber
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function onFlush(OnFlushEventArgs $args)
    {
        $em  = $args-&amp;gt;getEntityManager();
        $uow = $em-&amp;gt;getUnitOfWork();

        foreach ($uow-&amp;gt;getScheduledEntityUpdates() as $updated) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($updated &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; Issue) {
                $em-&amp;gt;persist(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; IssueLog($updated));
            }
        }

        $uow-&amp;gt;computeChangeSets();
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getSubscribedEvents()
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; array(Events::onFlush);
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="20587" author="ocramius" created="Mon, 17 Jun 2013 23:18:32 +0000"  >&lt;p&gt;Not an issue - unsafe usage of the `preUpdate` event&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2496] Unexpected behaviour flushing single entity</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2496</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The following works as expected:&lt;br/&gt;
$existingElement = $repository-&amp;gt;find(1);&lt;br/&gt;
$existingElement-&amp;gt;setSomething(&apos;foo&apos;);&lt;br/&gt;
$newElement = new Element(&apos;bar&apos;);&lt;br/&gt;
$em-&amp;gt;persist($newElement);&lt;br/&gt;
$em-&amp;gt;flush($newElement);&lt;br/&gt;
// The new element is added and the existing is not modified&lt;/p&gt;

&lt;p&gt;The following does not:&lt;br/&gt;
$existingElement = $repository-&amp;gt;find(1);&lt;br/&gt;
$em-&amp;gt;remove(existingElement);&lt;br/&gt;
$newElement = new Element(&apos;bar&apos;);&lt;br/&gt;
$em-&amp;gt;persist($newElement);&lt;br/&gt;
$em-&amp;gt;flush($newElement);&lt;br/&gt;
// The new element is added and the existing is deleted (i didnt flush THAT element)&lt;/p&gt;

&lt;p&gt;The following does not:&lt;br/&gt;
$newElement2 = new Element(&apos;foo&apos;);&lt;br/&gt;
$em-&amp;gt;persist($newElement2);&lt;br/&gt;
$newElement = new Element(&apos;bar&apos;);&lt;br/&gt;
$em-&amp;gt;persist($newElement);&lt;br/&gt;
$em-&amp;gt;flush($newElement);&lt;br/&gt;
// Both elements are persisted, even if I only flushed $newElement&lt;/p&gt;</description>
                <environment></environment>
            <key id="15033">DDC-2496</key>
            <summary>Unexpected behaviour flushing single entity</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="hrajchert">Hernan Rajchert</reporter>
                        <labels>
                        <label>orm</label>
                        <label>unitofwork</label>
                    </labels>
                <created>Mon, 10 Jun 2013 21:37:39 +0000</created>
                <updated>Mon, 17 Jun 2013 18:03:51 +0000</updated>
                    <resolved>Wed, 12 Jun 2013 18:07:31 +0000</resolved>
                            <version>2.3.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20551" author="hrajchert" created="Wed, 12 Jun 2013 18:04:03 +0000"  >&lt;p&gt;By the way, I noticed in the code that this seems to be &quot;expected behaviour&quot;, but it doesn&apos;t make too much sense, as the idea is to not disturb the original unit of work.&lt;/p&gt;

&lt;p&gt;The problem arises when I call some findOrCreate methods that I&apos;ve done. The idea is that those entities should be there, but not always are, and they usually occur on the middle of some other processing, so if I have some new elements before calling the findOrCreate I dont want them to be inserted until I flush them in particular.&lt;/p&gt;

&lt;p&gt;Right now Im creating a new EntityManager (which involves a new connection), doing the insert there and then merging into the other EntityManager, but the merge is very error prone to the order you merge stuff.&lt;/p&gt;</comment>
                    <comment id="20552" author="ocramius" created="Wed, 12 Jun 2013 18:07:22 +0000"  >&lt;p&gt;Flushing with a given parameter is only about optimizing changeset computation - it is not meant to flush only the new element.&lt;/p&gt;</comment>
                    <comment id="20584" author="hrajchert" created="Mon, 17 Jun 2013 16:33:32 +0000"  >&lt;p&gt;So how would you recommend to resolve the findOrCreate issues?&lt;/p&gt;</comment>
                    <comment id="20585" author="ocramius" created="Mon, 17 Jun 2013 18:03:51 +0000"  >&lt;p&gt;You would have to flush afterwards.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2511] [GH-701] list_bugs.php needs to call to getters for protected vars</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2511</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of rbroen:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/701&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/701&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;list_bugs.php needs to call to getters for protected vars. This was changed in the &quot;getting-started&quot; code repository, but not in the &quot;getting-started&quot; tutorial.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15054">DDC-2511</key>
            <summary>[GH-701] list_bugs.php needs to call to getters for protected vars</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Jun 2013 09:36:34 +0000</created>
                <updated>Mon, 17 Jun 2013 09:41:44 +0000</updated>
                    <resolved>Mon, 17 Jun 2013 09:41:44 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20582" author="doctrinebot" created="Mon, 17 Jun 2013 09:41:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-701&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/701&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/701&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20583" author="ocramius" created="Mon, 17 Jun 2013 09:41:44 +0000"  >&lt;p&gt;Merged at &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/a39ceb3159d9716b528c422099c853224a1bc863&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/a39ceb3159d9716b528c422099c853224a1bc863&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2509] Add CLI detection for the APC check on Console cache commands</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2509</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;There is some instanceof checks on the \Doctrine\ORM\Tools\Console\Command\ClearCache&amp;#42; commands to detect if APC is being used, they were introduced here: &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/8efae0b232210b27200f2709e7fcb24c7f02c5de&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/8efae0b232210b27200f2709e7fcb24c7f02c5de&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I would like to know if it&apos;s possible to add a CLI check too, something like:&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;if&lt;/span&gt; ($cacheDriver &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; Cache\ApcCache &amp;amp;&amp;amp; PHP_SAPI === &apos;cli&apos; )&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Yeah, I know that those are CLI commands, and so the check looks like unecessary, however, in the particular case that I found it&apos;s necessary, I&apos;m running the commands under an WebUI:&lt;br/&gt;
Before the modification:&lt;br/&gt;
&lt;img src=&quot;http://i.imgur.com/8a2iVl7.jpg&quot; align=&quot;absmiddle&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;

&lt;p&gt;After:&lt;br/&gt;
&lt;img src=&quot;http://i.imgur.com/LTN1aDa.jpg&quot; align=&quot;absmiddle&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15052">DDC-2509</key>
            <summary>Add CLI detection for the APC check on Console cache commands</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jcm">Jonathan Cardoso Machado</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Jun 2013 01:12:36 +0000</created>
                <updated>Mon, 17 Jun 2013 08:41:24 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20581" author="ocramius" created="Mon, 17 Jun 2013 08:41:24 +0000"  >&lt;p&gt;CLI commands are not meant to be used in WEB environment (at least not the Symfony CLI ones). You should probably replicate that logic instead.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2510] [GH-700] Update getting-started.rst</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2510</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of rbroen:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/700&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/700&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The tutorial assumes Doctrine 2.4&lt;/p&gt;</description>
                <environment></environment>
            <key id="15053">DDC-2510</key>
            <summary>[GH-700] Update getting-started.rst</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Jun 2013 08:32:11 +0000</created>
                <updated>Mon, 17 Jun 2013 08:40:10 +0000</updated>
                    <resolved>Mon, 17 Jun 2013 08:40:10 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20579" author="doctrinebot" created="Mon, 17 Jun 2013 08:39:51 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-700&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/700&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/700&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20580" author="ocramius" created="Mon, 17 Jun 2013 08:40:10 +0000"  >&lt;p&gt;Merged at &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/1a958f70fdb2aa67d41c76c0f0bde7fb393ed4ab&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/1a958f70fdb2aa67d41c76c0f0bde7fb393ed4ab&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2508] [GH-699] commented a change that was ahead of stable; added calls to getters</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2508</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of rbroen:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/699&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/699&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;CreateHelperSet appears to be a method in 2.4, which is not stable yet and does not correspond with this 2.3 tutorial.&lt;br/&gt;
list_bugs.php was trying to get protected vars.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15051">DDC-2508</key>
            <summary>[GH-699] commented a change that was ahead of stable; added calls to getters</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sat, 15 Jun 2013 20:27:50 +0000</created>
                <updated>Sun, 16 Jun 2013 17:51:51 +0000</updated>
                    <resolved>Sun, 16 Jun 2013 17:51:51 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20578" author="doctrinebot" created="Sun, 16 Jun 2013 17:50:00 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-699&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/699&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/699&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2506] WITH Conditionals on Class Table Inheritance LEFT JOINs are inserted incorrectly</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2506</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The following JOIN&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;
JOIN c.ctiRelationship cti WITH cti.id IN (42)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;generates unexpected SQL&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;
LEFT JOIN class_base p1_ ON u1_.cti_id = p1_.id 
LEFT JOIN class_child1 p2_ ON p1_.id = p2_.id
LEFT JOIN class_child2 p3_ ON p1_.id = p3_.id AND (p1_.id IN (42)) 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;when it SHOULD be generating&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;
LEFT JOIN class_base p1_ ON u1_.cti_id = p1_.id AND (p1_.id IN (42)) 
LEFT JOIN class_child1 p2_ ON p1_.id = p2_.id
LEFT JOIN class_child2 p3_ ON p1_.id = p3_.id
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="15049">DDC-2506</key>
            <summary>WITH Conditionals on Class Table Inheritance LEFT JOINs are inserted incorrectly</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mattjanssen">Matt Janssen</reporter>
                        <labels>
                        <label>dql</label>
                        <label>inheritance</label>
                        <label>joins</label>
                        <label>sql-walker</label>
                    </labels>
                <created>Fri, 14 Jun 2013 16:32:37 +0000</created>
                <updated>Fri, 14 Jun 2013 16:46:34 +0000</updated>
                                    <version>Git Master</version>
                                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20573" author="mattjanssen" created="Fri, 14 Jun 2013 16:46:34 +0000"  >&lt;p&gt;Pull: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/698&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/698&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2507] [GH-698] Fix for [DDC-2506] CTI JOINs and WITH conditionals</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2507</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of mattjanssen:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/698&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/698&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2506&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2506&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Moved the `SqlWalker::walkConditionalExpression()` out of `walkJoin()` and into `walkJoinAssociationDeclaration()` after the base class JOIN but *&lt;b&gt;before&lt;/b&gt;* the `_generateClassTableInheritanceJoins()`, thus allowing WITH conditions in Class Table Inheritance joins to apply correctly.&lt;/p&gt;

&lt;p&gt;On a side note, I&apos;m not able to get phpunit to run (even on a clean Master) so I&apos;m leaving the testing up to Travis.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15050">DDC-2507</key>
            <summary>[GH-698] Fix for [DDC-2506] CTI JOINs and WITH conditionals</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Jun 2013 16:34:33 +0000</created>
                <updated>Fri, 14 Jun 2013 16:34:33 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2505] [GH-697] Fix phpDoc syntax in ClassMetadataInfo.php</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2505</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of michaelperrin:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/697&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/697&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="15047">DDC-2505</key>
            <summary>[GH-697] Fix phpDoc syntax in ClassMetadataInfo.php</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Jun 2013 08:00:51 +0000</created>
                <updated>Fri, 14 Jun 2013 13:57:21 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20571" author="doctrinebot" created="Fri, 14 Jun 2013 13:57:21 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-697&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/697&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/697&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2504] [GH-696] extra lazy joined test</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2504</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Padam87:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/696&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/696&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;This is just a bug report, not an actual PR, you don&apos;t have to merge.&lt;/p&gt;

&lt;p&gt;When you have a JOINED inheritance, and you have another class, which is related to the parent class of the inheritance, and you only have an association for one of the child classes, EXTRA_LAZY fetch mode creates a fatal error, because it is not joining the parent table to the count query.&lt;/p&gt;

&lt;p&gt;There are many ways around this fortunately, but I thought I should report it anyway.&lt;/p&gt;</description>
                <environment></environment>
            <key id="15046">DDC-2504</key>
            <summary>[GH-696] extra lazy joined test</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Jun 2013 07:49:08 +0000</created>
                <updated>Fri, 14 Jun 2013 07:49:08 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2502] [GH-694] [DDC-2478] Support null association comparison</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2502</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of FabioBatSilva:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/694&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/694&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2478&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2478&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15044">DDC-2502</key>
            <summary>[GH-694] [DDC-2478] Support null association comparison</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Thu, 13 Jun 2013 20:53:55 +0000</created>
                <updated>Fri, 14 Jun 2013 04:27:46 +0000</updated>
                    <resolved>Fri, 14 Jun 2013 04:27:46 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20568" author="doctrinebot" created="Fri, 14 Jun 2013 03:12:55 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-694&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/694&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/694&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20570" author="fabio.bat.silva" created="Fri, 14 Jun 2013 04:27:46 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/f2f1d8986c288a437b81cd756d889aa47880d8b8&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/f2f1d8986c288a437b81cd756d889aa47880d8b8&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2478] PersisterException when matching Criteria expression isNull to ArrayCollection</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2478</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;
    /**
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;ClubBoardPost&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;children&quot;&lt;/span&gt;)
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; ClubBoardPost
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $parent;

$criteria = Criteria::create()-&amp;gt;where(Criteria::expr()-&amp;gt;isNull(&apos;parent&apos;));
$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;boardPosts-&amp;gt;matching($criteria);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;output&amp;#93;&lt;/span&gt;&lt;br/&gt;
Cannot match on Fubles\CoreBundle\Entity\ClubBoardPost::parent with a non-object value. Matching objects by id is not compatible with matching on an in-memory collection, which compares objects by reference.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;first analysis&amp;#93;&lt;/span&gt;&lt;br/&gt;
@SqlExpressionVisitor:69 It seems like this check pretends that the value must be an object, maybe do you need to exclude NULL values only if association is nullable?&lt;/p&gt;</description>
                <environment></environment>
            <key id="15003">DDC-2478</key>
            <summary>PersisterException when matching Criteria expression isNull to ArrayCollection</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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="twistedlogic">Antonio Trapani</reporter>
                        <labels>
                    </labels>
                <created>Thu, 30 May 2013 13:24:31 +0000</created>
                <updated>Fri, 14 Jun 2013 04:26:40 +0000</updated>
                    <resolved>Fri, 14 Jun 2013 04:26:40 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20569" author="fabio.bat.silva" created="Fri, 14 Jun 2013 04:26:40 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/f2f1d8986c288a437b81cd756d889aa47880d8b8&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/f2f1d8986c288a437b81cd756d889aa47880d8b8&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2480] Filter stops working after upgrade to Symfony 2.3rc1</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2480</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In our project we have two associated entities &quot;portal&quot; and &quot;object_data&quot;. To get all object_data of an object that belong to a portal, we use filtering code like this since symfony 2.0:&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_data = $object-&amp;gt;getObjectData()-&amp;gt;filter(
            function ($current_object_data) use ($portal) {
                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $current_object_data-&amp;gt;getPortal() === $portal;
            }
        )-&amp;gt;first();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Up to now, this worked just fine. When upgrading from Symfony 2.2 to 2.3rc1, this code stopped working, the comparison will always be false. I also received a PHP error message in another place about the portal entity not being convertible to a string:&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;
PHP Catchable fatal error:  &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt; of class ...\\Entity\\Portal 
could not be converted to string in /.../vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php on line 1211
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I assume these problems are related. Since the code worked just fine from Symfony 2.0 to 2.2, I assume that this might be a regression. Could you kindly take a look at this and perhaps let me know if I did anything wrong?&lt;/p&gt;

&lt;p&gt;We use direct entity comparisons in many places in our code, rather than comparing the ids of the entities directly, and so far it worked just fine.&lt;/p&gt;

&lt;p&gt;Thanks a lot!&lt;/p&gt;</description>
                <environment>Mac OS, Symfony 2.3rc1</environment>
            <key id="15006">DDC-2480</key>
            <summary>Filter stops working after upgrade to Symfony 2.3rc1</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="mgruner">Martin Gruner</reporter>
                        <labels>
                        <label>orm</label>
                        <label>regression</label>
                    </labels>
                <created>Sat, 1 Jun 2013 12:12:35 +0000</created>
                <updated>Thu, 13 Jun 2013 15:30:32 +0000</updated>
                    <resolved>Thu, 13 Jun 2013 15:30:32 +0000</resolved>
                            <version>2.3.4</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20464" author="ocramius" created="Mon, 3 Jun 2013 08:26:30 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=mgruner&quot; class=&quot;user-hover&quot; rel=&quot;mgruner&quot;&gt;Martin Gruner&lt;/a&gt; the issue is incomplete - can you provide a failing example or even better a test case?&lt;/p&gt;</comment>
                    <comment id="20566" author="mgruner" created="Thu, 13 Jun 2013 15:30:32 +0000"  >&lt;p&gt;Sorry for the delay. This issue was caused by a bug about aliased services in symfony 2.3.0 and is fixed in 2.3.1. We likely had more than one instance of the entity manager present leading to the wrong behaviour.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2484] Lazy loaded associated entities do not trigger the postLoad event</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2484</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;An entity retrieved with $entity = $em-&amp;gt;find will correctly trigger the postLoad event but an entity associated with that entity $association = $entity-&amp;gt;association which is lazy loaded will retrieve and return the associated entity without triggering postLoad.  Eager loading does follow the lifecycle path of triggering postLoad.&lt;/p&gt;

&lt;p&gt;Functional Test:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/685&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/685&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="15012">DDC-2484</key>
            <summary>Lazy loaded associated entities do not trigger the postLoad event</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="tom_anderson">Tom Anderson</reporter>
                        <labels>
                        <label>event</label>
                        <label>orm</label>
                    </labels>
                <created>Mon, 3 Jun 2013 22:13:52 +0000</created>
                <updated>Thu, 13 Jun 2013 13:55:17 +0000</updated>
                                    <version>Git Master</version>
                                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20520" author="fabio.bat.silva" created="Mon, 10 Jun 2013 18:29:59 +0000"  >&lt;p&gt;Hi Tom,&lt;/p&gt;

&lt;p&gt;You CANNOT check the entity class by using get_class, doctrine uses the &lt;a href=&quot;http://en.wikipedia.org/wiki/Proxy_pattern&quot; class=&quot;external-link&quot;&gt;pattern proxy&lt;/a&gt; to delay the load from database.&lt;/p&gt;

&lt;p&gt;Then &lt;b&gt;$args-&amp;gt;getEntity()&lt;/b&gt; might be a different class that extends your entity&lt;br/&gt;
In this case you should always check using instanceof :&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;
$entity = $args-&amp;gt;getEntity();

&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($entity &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; DDC2484_Car) {
    $entity-&amp;gt;setBrand(&apos;BMW&apos;);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Also when you try to load the same entity more than once :&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;
$eagerDriver-&amp;gt;getCar();
$lazyDriver-&amp;gt;getCar();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The entity will be cached at the first time, triggering onLoad just once.&lt;/p&gt;

&lt;p&gt;It means that the entity will be always the same instance, &lt;br/&gt;
it&apos;s not loaded from database untill you clean up the entity manager.&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;assertSame($eagerDriver-&amp;gt;getCar(), $lazyDriver-&amp;gt;getCar());&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>