<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue May 21 09:11:20 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=fixVersion+%3D+%222.0.2%22+AND+project+%3D+DDC&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=fixVersion+%3D+%222.0.2%22+AND+project+%3D+DDC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="15" total="15"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-1056] Using the StaticPHPDriver throws PHP Error Undefined property: Doctrine\ORM\Mapping\Driver\StaticPHPDriver::$_classNames</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1056</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Using the StaticPHPDriver throws PHP Error Undefined property: Doctrine\ORM\Mapping\Driver\StaticPHPDriver::$_classNames&lt;/p&gt;

&lt;p&gt;this is due to the class not having the two required instance variables $this-&amp;gt;_classNames and $this-&amp;gt;_fileExtension.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12444">DDC-1056</key>
            <summary>Using the StaticPHPDriver throws PHP Error Undefined property: Doctrine\ORM\Mapping\Driver\StaticPHPDriver::$_classNames</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</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="ratius">Steven Rosato</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Mar 2011 21:24:16 +0000</created>
                <updated>Fri, 4 Mar 2011 16:23:55 +0000</updated>
                    <resolved>Fri, 4 Mar 2011 16:23:55 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15440" author="ratius" created="Thu, 3 Mar 2011 21:27:56 +0000"  >&lt;p&gt;I have attached the patch that resolves the issue.&lt;/p&gt;</comment>
                    <comment id="15441" author="ratius" created="Thu, 3 Mar 2011 21:48:51 +0000"  >&lt;p&gt;I applied the patch and added a pull request. &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/34&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/34&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="15451" author="beberlei" created="Fri, 4 Mar 2011 16:23:55 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10949" name="0001-DDC-1056-PHPStaticDriver-was-missing-two-instance-va.patch" size="1219" author="ratius" created="Thu, 3 Mar 2011 21:27:56 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1041] UnitOfWork tryGetById method is always called with the rootEntityName</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1041</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;My problem : i have a class table inheritance, with only 3 class, one abstract and two concrete.&lt;br/&gt;
says AbstractClass, ConcretClassA and ConcreteClassB&lt;br/&gt;
All three are declared with @entity&lt;/p&gt;

&lt;p&gt;if i already have in my identity map the ConcretClassA with id = 1&lt;br/&gt;
when i do an entityManager-&amp;gt;find(&apos;ConcreteClassB&apos;, 1) the identityMap returns me the ConcretClassA with id = 1&lt;br/&gt;
that&apos;s not correct !&lt;br/&gt;
it should return a null value instead&lt;/p&gt;

&lt;p&gt;That&apos;s because the entityRepository (and all the other doctrine class) call the UnitOfWork tryGetById with the rootEntityName, which in my case is AbstractClass.&lt;br/&gt;
See the first line of the entityRepository&apos;s find method :&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;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getUnitOfWork()-&amp;gt;tryGetById($id, $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_class-&amp;gt;rootEntityName)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;if i change this line to :&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;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getUnitOfWork()-&amp;gt;tryGetById($id, $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_class-&amp;gt;name)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;the find method return the expected null value.&lt;/p&gt;

&lt;p&gt;So, why the UnitOfWork tryGetById method is always called with the rootEntityName ?&lt;/p&gt;</description>
                <environment>LAMP</environment>
            <key id="12418">DDC-1041</key>
            <summary>UnitOfWork tryGetById method is always called with the rootEntityName</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="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="dreddy">Couragier S&#233;bastien</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Feb 2011 07:03:55 +0000</created>
                <updated>Fri, 4 Mar 2011 15:56:45 +0000</updated>
                    <resolved>Fri, 4 Mar 2011 15:56:45 +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="15376" author="beberlei" created="Fri, 25 Feb 2011 18:18:08 +0000"  >&lt;p&gt;The identity map HAS to work by root entity name.&lt;/p&gt;

&lt;p&gt;Otherwise think of an inheritance hierachy A &lt;del&gt;&amp;gt; B. Then both $em&lt;/del&gt;&amp;gt;find(&apos;A&apos;, 1); and $em-&amp;gt;find(&apos;B&apos;, 1); should return the same instance.&lt;/p&gt;

&lt;p&gt;If this does not hold you are screwed.&lt;/p&gt;

&lt;p&gt;Your problem is more subtle, i am not sure what the expected behavior should be here.&lt;/p&gt;</comment>
                    <comment id="15404" author="dreddy" created="Mon, 28 Feb 2011 03:51:08 +0000"  >&lt;p&gt;In my sense, the client code should exactly knows the inheritance hierachy, and exactly know what it wants too, so if it asks for an &apos;A&apos; instance, you can&apos;t return a &apos;B&apos; instance, although A inherit from B.&lt;/p&gt;</comment>
                    <comment id="15408" author="beberlei" created="Mon, 28 Feb 2011 05:32:34 +0000"  >&lt;p&gt;I agree with you except for the last sentence part. &lt;/p&gt;

&lt;p&gt;If A-&amp;gt;B and you query for B with Id 1 it should treturn an A if it exists. But if B-&amp;gt;C and A-&amp;gt;C then find(A) should only ever return As or Cs never, Bs.&lt;/p&gt;</comment>
                    <comment id="15411" author="dreddy" created="Mon, 28 Feb 2011 06:25:59 +0000"  >&lt;p&gt;I agree.&lt;br/&gt;
Perhaps my problem is more specific to the  class table inheritance strategy with an abstract class at the top of it.&lt;br/&gt;
Here&apos;s my identityMap&apos;s dump (with my first comment inheritance example) at the time the problem occurs :&lt;/p&gt;

&lt;p&gt;&apos;AbstractClass&apos; =&amp;gt;&lt;br/&gt;
    array&lt;br/&gt;
      1 =&amp;gt; string &apos;ConcretClassA&apos;&lt;br/&gt;
      2 =&amp;gt; string &apos;ConcretClassA&apos;&lt;br/&gt;
      3 =&amp;gt; string &apos;ConcretClassA&apos;&lt;br/&gt;
      367 =&amp;gt; string &apos;ConcretClassB&apos;&lt;br/&gt;
      368 =&amp;gt; string &apos;ConcretClassB&apos;&lt;br/&gt;
      369 =&amp;gt; string &apos;ConcretClassB&apos;&lt;/p&gt;

&lt;p&gt;And, at this time, in my code, i would like to know if the id 1 is a ConcretClassB. If the id 1 is a ConcretClassA, i must throw an exception.&lt;br/&gt;
So, how could i test if the id 1 is a ConcretClassB or not, if the find(&apos;ConcretClassB&apos;, 1) method returns me the ConcretClassA 1 ?&lt;/p&gt;

&lt;p&gt;thx for your help&lt;/p&gt;</comment>
                    <comment id="15412" author="beberlei" created="Mon, 28 Feb 2011 06:31:57 +0000"  >&lt;p&gt;Cant you just check 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;$a = $em-&amp;gt;find(&apos;ConcretClassA&apos;, $aId);
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($a &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; ConcretClassB) {
   &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Exception();
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="15413" author="dreddy" created="Mon, 28 Feb 2011 06:48:09 +0000"  >&lt;p&gt;Of course i can.&lt;br/&gt;
But i thought Doctrine should already have to do this check internally for us. Because we must now be very careful with the find method&apos;s returns...&lt;/p&gt;

&lt;p&gt;Nevermind, i don&apos;t have all the uses case Doctrine have to handle with inheritance in mind; so if you say it is to the client code to check, and it is a completely normal behavior, then it&apos;s okay for me.&lt;/p&gt;</comment>
                    <comment id="15416" author="beberlei" created="Mon, 28 Feb 2011 13:19:12 +0000"  >&lt;p&gt;i will change this behavior in the future, i am just making suggestions for you to fix it now. Using instanceof will also be forwards compatible since &quot;null instanceof Class&quot; is always false.&lt;/p&gt;

&lt;p&gt;In any case the level of having to be careful is the same, using null instead of an object can get you into troubles aswell.&lt;/p&gt;</comment>
                    <comment id="15437" author="dreddy" created="Thu, 3 Mar 2011 12:08:51 +0000"  >&lt;p&gt;Perhaps throw a \Doctrine\ORM\EntityNotFoundException would be a better option than return a null value ?&lt;/p&gt;</comment>
                    <comment id="15450" author="beberlei" created="Fri, 4 Mar 2011 15:56:45 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1036] the Aggregate Expressions &quot;AVG&quot; | &quot;MAX&quot; | &quot;MIN&quot; | &quot;SUM&quot;, should be followed by SimpleArithmeticExpression</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1036</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;the Aggregate Expressions &quot;AVG&quot; | &quot;MAX&quot; | &quot;MIN&quot; | &quot;SUM&quot;, should be not only  followed by StateFieldPathExpression , but also SimpleArithmeticExpression,&lt;br/&gt;
see &lt;a href=&quot;http://www.doctrine-project.org/docs/orm/2.0/en/reference/dql-doctrine-query-language.html#aggregate-expressions&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/orm/2.0/en/reference/dql-doctrine-query-language.html#aggregate-expressions&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;i found it can not execute dql like&lt;br/&gt;
select sum(c.quantity * c.price) total_price from cart c&lt;/p&gt;

&lt;p&gt;i think, this should be a bug&lt;/p&gt;</description>
                <environment></environment>
            <key id="12391">DDC-1036</key>
            <summary>the Aggregate Expressions &quot;AVG&quot; | &quot;MAX&quot; | &quot;MIN&quot; | &quot;SUM&quot;, should be followed by SimpleArithmeticExpression</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="jison">Jison Xiao</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Feb 2011 05:29:44 +0000</created>
                <updated>Sun, 20 Feb 2011 03:16:19 +0000</updated>
                    <resolved>Sun, 20 Feb 2011 03:16:19 +0000</resolved>
                                            <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15347" author="guilhermeblanco" created="Sat, 19 Feb 2011 23:45:23 +0000"  >&lt;p&gt;You are totally right.&lt;/p&gt;

&lt;p&gt;I fixed on trunk repository. Thanks a lot for pointing out this issue. =) &lt;/p&gt;</comment>
                    <comment id="15350" author="beberlei" created="Sun, 20 Feb 2011 03:16:19 +0000"  >&lt;p&gt;Merged into 2.0.x also&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<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>

<item>
            <title>[DDC-1033] Cloned proxies show unexpected behavior when initialized</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1033</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When a proxy has been loaded and is cloned before being initialized, it will behave unexpectedly.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;_load()&lt;/tt&gt; in the proxy starts a chain of method calls that end up loading the data and putting it into the proxy being in the identity map inside UoW. Now the registered proxy will be updated, but the cloned copy will of course not be changed - except it will behave as if it was initialized. This leads (at least in my case) to changes not being picked up after &lt;tt&gt;merge()&lt;/tt&gt; has been called.&lt;/p&gt;

&lt;p&gt;In my case I could work around this if I could ask the proxy to initialize itself (&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-733&quot; title=&quot;Implement a way of forcing a PersistentCollection to initialize itself&quot;&gt;&lt;del&gt;DDC-733&lt;/del&gt;&lt;/a&gt;). More transparent would be a &lt;tt&gt;__clone()&lt;/tt&gt; method in the proxy that initializes the proxy. This might also be related to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-18&quot; title=&quot;Track proxy objects in the identity map?&quot;&gt;&lt;del&gt;DDC-18&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12387">DDC-1033</key>
            <summary>Cloned proxies show unexpected behavior when initialized</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="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="k-fish">Karsten Dambekalns</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Feb 2011 11:18:00 +0000</created>
                <updated>Sat, 26 Feb 2011 06:50:17 +0000</updated>
                    <resolved>Sat, 26 Feb 2011 06:50:17 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.2</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15339" author="beberlei" created="Fri, 18 Feb 2011 16:12:13 +0000"  >&lt;p&gt;This issue is rather tricky, since __clone is called AFTER the actual clone, on the CLONED object. What we need is before the clone on the original object. This is pretty problematic to solve, i have to wrap my head around it.&lt;/p&gt;</comment>
                    <comment id="15384" author="beberlei" created="Sat, 26 Feb 2011 06:50:17 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1030] Issue with parseTokensInEntityFile() and multiple levels of namespace</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1030</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;If you have something like Acme\MainBundle\Document\User, the parser will only popular Acme\User as the key for the parsed information. We have to consider multiple leves of namespace. This concatenates each namespace after the namespace separator is found.&lt;/p&gt;

&lt;p&gt;I made the same fix in the odm here. Pull request for ORM on the way.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/mongodb-odm/commit/b7c72aa7b7b41de97b328a872cc8f7d4141b3143&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/mongodb-odm/commit/b7c72aa7b7b41de97b328a872cc8f7d4141b3143&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12382">DDC-1030</key>
            <summary>Issue with parseTokensInEntityFile() and multiple levels of namespace</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="jwage">Jonathan H. Wage</reporter>
                        <labels>
                    </labels>
                <created>Sat, 12 Feb 2011 19:40:49 +0000</created>
                <updated>Sun, 13 Feb 2011 04:03:53 +0000</updated>
                    <resolved>Sun, 13 Feb 2011 04:03:18 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.2</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15289" author="jwage" created="Sat, 12 Feb 2011 19:42:11 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/tree/DDC-1030&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/tree/DDC-1030&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="15291" author="beberlei" created="Sun, 13 Feb 2011 03:11:52 +0000"  >&lt;p&gt;Ah good catch. That fixes 2 open issues that i couldnt pin down &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    <comment id="15292" author="beberlei" created="Sun, 13 Feb 2011 04:03:18 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10002">
                <name>Dependency</name>
                                                <inwardlinks description="is required for">
                            <issuelink>
            <issuekey id="12367">DDC-1023</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1026] Doctrine Cache</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1026</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I find a problem with doctrine cache key.&lt;/p&gt;

&lt;p&gt;It use a namespace and key to save the value and never use the namespace to get it.&lt;/p&gt;

&lt;p&gt;I checked that on AbstractQuery::getResultCacheId().&lt;/p&gt;

&lt;p&gt;AbstractCache::save &lt;del&gt;&amp;gt; use $this&lt;/del&gt;&amp;gt;_getNamespacedId($id)&lt;/p&gt;</description>
                <environment></environment>
            <key id="12371">DDC-1026</key>
            <summary>Doctrine Cache</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="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="garfield-fr">Bertrand Zuchuat</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Feb 2011 10:14:51 +0000</created>
                <updated>Fri, 25 Feb 2011 18:42:01 +0000</updated>
                    <resolved>Fri, 25 Feb 2011 18:42:01 +0000</resolved>
                            <version>2.0.1</version>
                <version>2.0.2</version>
                                <fixVersion>2.0.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15278" author="beberlei" created="Sat, 12 Feb 2011 11:01:37 +0000"  >&lt;p&gt;AbstractQuery::getResultCacheId() does not append the namespace. The Cache functions fetch() and contains() do.&lt;/p&gt;</comment>
                    <comment id="15367" author="awoods" created="Thu, 24 Feb 2011 11:29:25 +0000"  >&lt;p&gt;Actually, I think ALL result caching may be broken since the fix for &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-892&quot; title=&quot;Caches can potentially return false positives due to use of MD5 hash codes as keys. A classic.&quot;&gt;&lt;del&gt;DDC-892&lt;/del&gt;&lt;/a&gt; landed. The code is expecting to fetch an array from the cache with an element in it thats key is $id. Presumably, this is to cater for cases where the hash clashes for different ids. However, the query result is not being inserted into the cache in this format!&lt;/p&gt;

&lt;p&gt;This patch should fix the issue.&lt;/p&gt;

&lt;p&gt;There&apos;s still a less serious issue - and that&apos;s that if there are two ids with clashing hashes that are being called repeatedly in quick succession, they&apos;re going to keep displacing each other from the cache. An alternative patch could bundle both ids them into the same cache entry:&lt;/p&gt;

&lt;p&gt;if ($cached === false)&lt;br/&gt;
    $cached = array();&lt;br/&gt;
$cached&lt;span class=&quot;error&quot;&gt;&amp;#91;$id&amp;#93;&lt;/span&gt; = $result;&lt;br/&gt;
$cacheDriver-&amp;gt;save($id, $cached, $this-&amp;gt;_resultCacheTTL);&lt;/p&gt;

&lt;p&gt;However, I think displacing is better than running the risk of having a TTL that is too long be applied as the result of a clash!&lt;/p&gt;

&lt;p&gt;EDIT: I&apos;m also wondering why $hash isn&apos;t used as the cache key. It looks like the intention was that it should be, but it isn&apos;t..&lt;/p&gt;</comment>
                    <comment id="15377" author="beberlei" created="Fri, 25 Feb 2011 18:42:01 +0000"  >&lt;p&gt;Fixed, the &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-892&quot; title=&quot;Caches can potentially return false positives due to use of MD5 hash codes as keys. A classic.&quot;&gt;&lt;del&gt;DDC-892&lt;/del&gt;&lt;/a&gt; patch was pretty borked. This does now work&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10939" name="AbstractQuery.php.patch" size="464" author="garfield-fr" created="Sun, 13 Feb 2011 16:21:23 +0000" />
                    <attachment id="10938" name="apctest.tgz" size="15819" author="garfield-fr" created="Sun, 13 Feb 2011 07:42:30 +0000" />
                    <attachment id="10944" name="yay-caching-works-again.patch" size="564" author="awoods" created="Thu, 24 Feb 2011 11:29:25 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1024] the EntityGenerator generate getters and setters for properties of the parent class</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1024</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;when using the EntityGenerator to generate getters and setters of two classes mapped with annotations, one inheriting from the other, the EntityGenerator generates getters and setters for the properties of the parent class in the child class too. This occurs since the recent EntityGenerator changes (as it did not care about inheritance before).&lt;br/&gt;
I suppose this is due to the fact that the getters and setters of the parent class are not yet generated when handling the child class.&lt;/p&gt;

&lt;p&gt;I haven&apos;t try if it works well when using XML or YAML for the mapping.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12368">DDC-1024</key>
            <summary>the EntityGenerator generate getters and setters for properties of the parent class</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="stof">Christophe Coevoet</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Feb 2011 15:16:16 +0000</created>
                <updated>Wed, 4 Jan 2012 11:24:41 +0000</updated>
                    <resolved>Sat, 12 Feb 2011 12:24:53 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="15279" author="beberlei" created="Sat, 12 Feb 2011 11:20:38 +0000"  >&lt;p&gt;How do you define inheritance?&lt;/p&gt;</comment>
                    <comment id="15280" author="stof" created="Sat, 12 Feb 2011 11:27:47 +0000"  >&lt;p&gt;In my case, it was inheritance using a Single Table Inheritance.&lt;/p&gt;

&lt;p&gt;Both entities were in the same Symfony2 Bundle so the getters and setters were generated by the same command.&lt;/p&gt;</comment>
                    <comment id="15283" author="beberlei" created="Sat, 12 Feb 2011 12:24:53 +0000"  >&lt;p&gt;fixed&lt;/p&gt;</comment>
                    <comment id="16764" author="yakobe" created="Tue, 1 Nov 2011 15:29:42 +0000"  >&lt;p&gt;I am still having this problem with the 2.1 branch. Should it not happen anymore?&lt;/p&gt;</comment>
                    <comment id="17172" author="albert.brand" created="Wed, 4 Jan 2012 11:24:41 +0000"  >&lt;p&gt;I&apos;m also still seeing this in 2.1 (bundled with Symfony2).&lt;br/&gt;
Using single table inheritance, adding a protected or public property to the abstract class causes private properties &amp;amp; getters &amp;amp; setters to be added to all subclasses.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1023] the EntityGenerator duplicates the property when using annotations</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1023</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using the EntityGenerator to generate getters and setters of a class mapped with annotations, all properties are duplicated. This occurs at least when the properties were defined protected (not tried with private ones).&lt;/p&gt;

&lt;p&gt;It worked fine before the recent EntityGenerator changes.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12367">DDC-1023</key>
            <summary>the EntityGenerator duplicates the property when using annotations</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="stof">Christophe Coevoet</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Feb 2011 15:11:10 +0000</created>
                <updated>Sun, 13 Feb 2011 04:04:00 +0000</updated>
                    <resolved>Sun, 13 Feb 2011 04:04:00 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.2</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="15293" author="beberlei" created="Sun, 13 Feb 2011 04:04:00 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10002">
                <name>Dependency</name>
                                <outwardlinks description="depends on">
                            <issuelink>
            <issuekey id="12382">DDC-1030</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1018] INDEX BY does not work in JOIN clauses</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1018</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;It seems INDEX BY only works in the FROM, not in JOIN clauses.&lt;/p&gt;

&lt;p&gt;This is a dependency for &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-250&quot; title=&quot;ArrayCollection Key Column @indexBy&quot;&gt;&lt;del&gt;DDC-250&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12359">DDC-1018</key>
            <summary>INDEX BY does not work in JOIN clauses</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Feb 2011 19:56:48 +0000</created>
                <updated>Sat, 5 Feb 2011 04:34:15 +0000</updated>
                    <resolved>Sat, 5 Feb 2011 04:34:15 +0000</resolved>
                            <version>2.0.1</version>
                                <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15230" author="beberlei" created="Sat, 5 Feb 2011 04:34:15 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10002">
                <name>Dependency</name>
                                                <inwardlinks description="is required for">
                            <issuelink>
            <issuekey id="10718">DDC-250</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1009] Allow using an annotation namespace in the EntityGenerator</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1009</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The EntityGenerator does not allow to use a namespace for annotations, which is supported by the driver and used by Symfony2 DoctrineBundle.&lt;/p&gt;

&lt;p&gt;The pull request &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/22&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/22&lt;/a&gt; adds this behavior.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12341">DDC-1009</key>
            <summary>Allow using an annotation namespace in the EntityGenerator</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="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="stof">Christophe Coevoet</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Feb 2011 04:31:50 +0000</created>
                <updated>Wed, 2 Feb 2011 17:46:54 +0000</updated>
                    <resolved>Wed, 2 Feb 2011 17:46:54 +0000</resolved>
                                            <fixVersion>2.0.2</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15217" author="beberlei" created="Wed, 2 Feb 2011 17:46:54 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1008] Entity Generator Stub Method For Id Generator</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1008</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In the EntityGenerator when the id setting has a generator of NONE it does not add the stub method for setting the id keys value, here&apos;s my fix:&lt;/p&gt;

&lt;p&gt;around line 478 in the _generateEntityStubMethods function, the first foreach which checks for the id mapping, change:&lt;/p&gt;

&lt;p&gt;            if ( ! isset($fieldMapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;id&amp;#39;&amp;#93;&lt;/span&gt;) || ! $fieldMapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;id&amp;#39;&amp;#93;&lt;/span&gt;) {&lt;/p&gt;

&lt;p&gt;TO&lt;/p&gt;

&lt;p&gt;            if ( ! isset($fieldMapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;id&amp;#39;&amp;#93;&lt;/span&gt;) || ! $fieldMapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;id&amp;#39;&amp;#93;&lt;/span&gt; || ($this-&amp;gt;_getIdGeneratorTypeString($metadata-&amp;gt;generatorType) == &apos;NONE&apos;)) {&lt;/p&gt;</description>
                <environment></environment>
            <key id="12340">DDC-1008</key>
            <summary>Entity Generator Stub Method For Id Generator</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="sw45859">Stephen Walker</reporter>
                        <labels>
                    </labels>
                <created>Mon, 31 Jan 2011 19:00:57 +0000</created>
                <updated>Wed, 2 Feb 2011 17:32:07 +0000</updated>
                    <resolved>Wed, 2 Feb 2011 17:32:07 +0000</resolved>
                            <version>2.0.1</version>
                                <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15213" author="beberlei" created="Wed, 2 Feb 2011 17:32:07 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1006] Entity Generator Regenerate If Not New</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1006</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When regenerating entities from xml ( and i am sure all others ) it gives a blank entity class when the file exists and the regenerateIfExists is set to true, the expected result would be a full entity with any removed columns removed from the entity and new columns to be added.&lt;/p&gt;

&lt;p&gt;i&apos;ve come up with a fix that i assume is the correct way&lt;br/&gt;
i haven&apos;t tested this without the regeneration set to true since my application requires the regeneration, here&apos;s my code block i&apos;m using:&lt;/p&gt;

&lt;p&gt;$em-&amp;gt;getConfiguration()-&amp;gt;setMetadataDriverImpl(&lt;br/&gt;
    new \Doctrine\ORM\Mapping\Driver\SesXmlDriver(&lt;br/&gt;
        &apos;ext/Doctrine/Entities/xml_metadata/&apos;&lt;br/&gt;
    )&lt;br/&gt;
);&lt;/p&gt;

&lt;p&gt;$cmf = new Doctrine\ORM\Tools\DisconnectedClassMetadataFactory();&lt;br/&gt;
$cmf-&amp;gt;setEntityManager($em);&lt;br/&gt;
$metadata = $cmf-&amp;gt;getAllMetadata();&lt;/p&gt;

&lt;p&gt;$generator = new \Doctrine\ORM\Tools\EntityGenerator();&lt;br/&gt;
$generator-&amp;gt;setGenerateAnnotations(true);&lt;br/&gt;
$generator-&amp;gt;setGenerateStubMethods(true);&lt;br/&gt;
$generator-&amp;gt;setRegenerateEntityIfExists(true);&lt;br/&gt;
//$generator-&amp;gt;setUpdateEntityIfExists(true);&lt;br/&gt;
$generator-&amp;gt;generate($metadata, &apos;ext/&apos;);&lt;/p&gt;

&lt;p&gt;in the _hasProperty and _hasMethod functions, need to add the below to the inline check:&lt;/p&gt;

&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; ( ! $this-&amp;gt;_isNew &amp;amp;&amp;amp; $this-&amp;gt;_regenerateEntityIfExists)&lt;/th&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
</description>
                <environment></environment>
            <key id="12335">DDC-1006</key>
            <summary>Entity Generator Regenerate If Not New</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="sw45859">Stephen Walker</reporter>
                        <labels>
                    </labels>
                <created>Mon, 31 Jan 2011 02:11:20 +0000</created>
                <updated>Wed, 2 Feb 2011 17:33:01 +0000</updated>
                    <resolved>Wed, 2 Feb 2011 17:33:01 +0000</resolved>
                            <version>2.0.1</version>
                                <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15210" author="beberlei" created="Wed, 2 Feb 2011 13:52:03 +0000"  >&lt;p&gt;blank as in the file is completly empty?&lt;/p&gt;</comment>
                    <comment id="15211" author="sw45859" created="Wed, 2 Feb 2011 13:57:20 +0000"  >&lt;p&gt;no, it generates just the class with no properties or methods.&lt;/p&gt;</comment>
                    <comment id="15215" author="beberlei" created="Wed, 2 Feb 2011 17:33:01 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1002] bug in generate entities with many2many relationships from xml/yml shcemes</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1002</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I try use many2many relations in my symfony2 learning project &lt;a href=&quot;https://github.com/symfony/symfony.git&quot; class=&quot;external-link&quot;&gt;https://github.com/symfony/symfony.git&lt;/a&gt;&lt;br/&gt;
But entities thar generates from yml schemes did not meet entities from doctrine2 guide or entities from beberlei Whitewashing project &lt;a href=&quot;https://github.com/beberlei/Whitewashing/tree/master/Blog&quot; class=&quot;external-link&quot;&gt;https://github.com/beberlei/Whitewashing/tree/master/Blog&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After that I try generate similar entitries is doctrine2-sandbox. Problem is the same&lt;br/&gt;
I attached yml schemes and result entities.&lt;/p&gt;

&lt;p&gt;Problem:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Entities\Address does not have relations with Entities\User&lt;/li&gt;
	&lt;li&gt;In Entities\User property $adresses instance of Entity\Address. But this Doctrine\Common\Collections\ArrayCollection or no?
&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;var&lt;/span&gt; Entity\Address
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $addresses;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
	&lt;li&gt;In Entities\User not at __constructor() method:
&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;public&lt;/span&gt; function __construct()
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;addresses = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; ArrayCollection();
    }&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>Linux stfalcon-laptop 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux &lt;br/&gt;
Installed packages, channel pear.doctrine-project.org: &lt;br/&gt;
====================================================== &lt;br/&gt;
Package Version State &lt;br/&gt;
DoctrineCommon 2.0.0 stable &lt;br/&gt;
DoctrineDBAL 2.0.0 stable &lt;br/&gt;
DoctrineORM 2.0.0 stable </environment>
            <key id="12325">DDC-1002</key>
            <summary>bug in generate entities with many2many relationships from xml/yml shcemes</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="stfalcon">Stepan Tanasiychuk</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 Jan 2011 14:48:36 +0000</created>
                <updated>Wed, 2 Feb 2011 17:32:38 +0000</updated>
                    <resolved>Wed, 2 Feb 2011 17:32:38 +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="15214" author="beberlei" created="Wed, 2 Feb 2011 17:32:38 +0000"  >&lt;p&gt;Fixed the msising constructor. However mind that in my Whitewashing project i wrote the entities manually, not generated them!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10917" name="Entities.tar.gz" size="554" author="stfalcon" created="Tue, 25 Jan 2011 14:48:36 +0000" />
                    <attachment id="10916" name="yml.tar.gz" size="418" author="stfalcon" created="Tue, 25 Jan 2011 14:48:36 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-953] CLI tools orm:generate-entities --regenerate-entities=1 flag will generate empty entities 50% of time.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-953</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Running the command:&lt;br/&gt;
doctrine orm:generate-entities --regenerate-entities=1 --generate-annotations=1 ./&lt;/p&gt;

&lt;p&gt;50% of the time my entity will appear as:&lt;br/&gt;
&amp;lt;?php&lt;/p&gt;

&lt;p&gt;namespace models;&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;models\Role&lt;br/&gt;
 *&lt;/li&gt;
	&lt;li&gt;@Table(name=&quot;roles&quot;)&lt;/li&gt;
	&lt;li&gt;@Entity(repositoryClass=&quot;models\repositories\RoleRepository&quot;)&lt;br/&gt;
 */&lt;br/&gt;
class Role&lt;br/&gt;
{&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;The other 50% everything will be in there. In addition, if the --regenerate-entities=1 argument is removed, if I change the data in my YAML schema file for a column (such as changing length=255 to length=50 on a string), the annotations won&apos;t be updated when the updated entity is generated. It seems only new fields are being added to the entity files which is why --regenerate-entities=1 was required in the first place.&lt;/p&gt;</description>
                <environment>Ubuntu 10.10, PHP5.3.3</environment>
            <key id="12258">DDC-953</key>
            <summary>CLI tools orm:generate-entities --regenerate-entities=1 flag will generate empty entities 50% of time.</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="flynsarmy">Flyn San</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Dec 2010 06:42:01 +0000</created>
                <updated>Tue, 8 Feb 2011 09:20:25 +0000</updated>
                    <resolved>Tue, 8 Feb 2011 09:20:25 +0000</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15216" author="beberlei" created="Wed, 2 Feb 2011 17:33:32 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                    <comment id="15240" author="flynsarmy" created="Tue, 8 Feb 2011 08:42:28 +0000"  >&lt;p&gt;This issue is still not fixed in 2.0.1. Simply run orm:generate-entities --regenerate-entities=1 --generate-annotations=1  to replicate.&lt;/p&gt;</comment>
                    <comment id="15241" author="beberlei" created="Tue, 8 Feb 2011 09:20:25 +0000"  >&lt;p&gt;Yes, because this issue is fixed in 2.0.2 not in 2.0.1.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>