<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 25 00:22:30 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-1034/DDC-1034.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-1034] Registered lifecycle callbacks of derived classes have unexpected call sequence</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1034</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Situation:&lt;br/&gt;
Create an abstract base class (@InheritanceType(&quot;JOINED&quot;)) and a derived class, both having the annotation @HasLifecycleCallbacks and both having a method  with annotation @PostLoad (different method names). The sequence of methods being called when an object is loaded from the database is not as expected.&lt;/p&gt;

&lt;p&gt;Expected output:&lt;br/&gt;
Called Che\Tmp\BaseClass::PostLoadBase&lt;br/&gt;
Called Che\Tmp\DerivedClass::PostLoadDerived&lt;br/&gt;
(base value, derived value)&lt;/p&gt;

&lt;p&gt;Actual output:&lt;br/&gt;
Called Che\Tmp\BaseClass::PostLoadBase&lt;br/&gt;
Called Che\Tmp\DerivedClass::PostLoadDerived&lt;br/&gt;
Called Che\Tmp\BaseClass::PostLoadBase&lt;br/&gt;
(base value)&lt;/p&gt;

&lt;p&gt;Test code:&lt;br/&gt;
See attachment for classes&lt;/p&gt;

&lt;p&gt;// Assume there is an entity manager $em&lt;br/&gt;
// Create object&lt;br/&gt;
$newDerived = new \Che\Tmp\DerivedClass();&lt;br/&gt;
$em-&amp;gt;persist($newDerived);&lt;/p&gt;

&lt;p&gt;// Fetch object&lt;br/&gt;
$derived = $em-&amp;gt;findById(&apos;\Che\Tmp\DerivedClass&apos;, 1);&lt;br/&gt;
$derived-&amp;gt;echoList();&lt;/p&gt;

&lt;p&gt;Possible problem cause&lt;/p&gt;

&lt;p&gt;ClassMetadataInfo::addLifecycleCallback($callback, $event) method has a note &apos;If the same callback is registered more than once, the old one will be overridden&apos;. We are not sure whether this is the case.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12388">DDC-1034</key>
            <summary>Registered lifecycle callbacks of derived classes have unexpected call sequence</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="bart">Bart</reporter>
                        <labels>
                    </labels>
                <created>Tue, 15 Feb 2011 05:16:50 +0000</created>
                <updated>Fri, 4 Mar 2011 17:04:55 +0000</updated>
                    <resolved>Fri, 4 Mar 2011 17:04:55 +0000</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15453" author="beberlei" created="Fri, 4 Mar 2011 17:04:55 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10940" name="TestClasses.php" size="1035" author="bart" created="Tue, 15 Feb 2011 05:16:50 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>