<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue May 21 08:51:28 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+fixVersion+%3D+%222.0.7%22+ORDER+BY+updated+DESC%2C+priority+DESC%2C+created+ASC&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+fixVersion+%3D+%222.0.7%22+ORDER+BY+updated+DESC%2C+priority+DESC%2C+created+ASC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="12" total="12"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-1195] The orm:convert-mapping is not configurable enough for Symfony2</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1195</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;see &lt;a href=&quot;https://github.com/symfony/symfony/issues/1119&quot; class=&quot;external-link&quot;&gt;https://github.com/symfony/symfony/issues/1119&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;fix here &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/66&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/66&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12697">DDC-1195</key>
            <summary>The orm:convert-mapping is not configurable enough for Symfony2</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="fabpot">Fabien Potencier</reporter>
                        <labels>
                    </labels>
                <created>Sun, 5 Jun 2011 06:14:46 +0000</created>
                <updated>Tue, 16 Aug 2011 05:43:59 +0000</updated>
                    <resolved>Tue, 16 Aug 2011 05:43:59 +0000</resolved>
                            <version>2.0.5</version>
                                <fixVersion>2.0.7</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16345" author="guilhermeblanco" created="Tue, 16 Aug 2011 05:43:59 +0000"  >&lt;p&gt;Already fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1302] orphan-removal does not work in XML</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1302</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The check for $oneToManyElement-&amp;gt;&lt;/p&gt;
{&apos;orphan-removal&apos;}
&lt;p&gt; returns false, the right check would be $oneToManyElement&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;orphan-removal&amp;#39;&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12867">DDC-1302</key>
            <summary>orphan-removal does not work in XML</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</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, 29 Jul 2011 09:09:13 +0000</created>
                <updated>Sun, 31 Jul 2011 09:38:52 +0000</updated>
                    <resolved>Sun, 31 Jul 2011 09:38:52 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16242" author="beberlei" created="Sun, 31 Jul 2011 09:38:52 +0000"  >&lt;p&gt;Fixed and merged into 2.0.x and 2.1.x branches.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1276] Merging persistent collections broken if managed and merged collection are the same object</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1276</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When FLOW3 maps request arguments to entities, it works on clones of the changed entities while entities, which are not affected by the request arguments stay the original objects. If the entity has a persistent collection which is not changed and therefore not cloned, the call to $repository-&amp;gt;update() (which internally calls $em-&amp;gt;merge()) eventually clears the $managedCol in $uow-&amp;gt;doMerge() (line 1460 in current master), but if the $mergeCol is the same object, this is obviously wrong behavior as no related entities exist anymore in the entity to merge.&lt;/p&gt;

&lt;p&gt;Made up example code (not sure if this simple example works as I have no test setup I could use for it)&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
 * @scope prototype
 */
class A {}

/**
 * @entity
 * @scope prototype
 */
class B {
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; \Doctrine\Common\Collection\ArrayCollection&amp;lt;A&amp;gt;
     * @ManyToMany
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $relation;
}

$b = $repository-&amp;gt;find(); &lt;span class=&quot;code-comment&quot;&gt;// assume $b has some A in relation
&lt;/span&gt;$anotherB = clone $b;
$em-&amp;gt;merge($anotherB);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;After this relation of $b is empty&lt;/p&gt;</description>
                <environment>FLOW3</environment>
            <key id="12824">DDC-1276</key>
            <summary>Merging persistent collections broken if managed and merged collection are the same object</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="liwo">Lienhart Woitok</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Jul 2011 18:45:35 +0000</created>
                <updated>Tue, 26 Jul 2011 20:19:35 +0000</updated>
                    <resolved>Tue, 26 Jul 2011 20:19:35 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16209" author="beberlei" created="Tue, 26 Jul 2011 20:19:35 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1240] Missing exception message</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1240</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Message in constructor should be assigned to exception message&lt;/p&gt;

&lt;p&gt;Index: OptimisticLockException.php&lt;br/&gt;
===================================================================&lt;br/&gt;
&amp;#8212; OptimisticLockException.php	(revision 5)&lt;br/&gt;
+++ OptimisticLockException.php	(working copy)&lt;br/&gt;
@@ -33,6 +33,7 @@&lt;/p&gt;

&lt;p&gt;     public function __construct($msg, $entity)&lt;/p&gt;
     {
+        $this-&amp;gt;message = $msg;
         $this-&amp;gt;entity = $entity;
     }
</description>
                <environment></environment>
            <key id="12766">DDC-1240</key>
            <summary>Missing exception message</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="yaroslav">Yaroslav Zenin</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Jul 2011 07:03:23 +0000</created>
                <updated>Tue, 12 Jul 2011 21:02:04 +0000</updated>
                    <resolved>Tue, 12 Jul 2011 21:02:04 +0000</resolved>
                            <version>2.x</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16158" author="beberlei" created="Tue, 12 Jul 2011 21:02:04 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1257] Duplicate PHP methods generated from XML metadata lifecycle-callbacks</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1257</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;If lifecycle callbacks are added to XML metadata like so:&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;lifecycle-callbacks&amp;gt;&lt;/span&gt;
		&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;lifecycle-callback type=&lt;span class=&quot;code-quote&quot;&gt;&quot;prePersist&quot;&lt;/span&gt; method=&lt;span class=&quot;code-quote&quot;&gt;&quot;validate&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;
		&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;lifecycle-callback type=&lt;span class=&quot;code-quote&quot;&gt;&quot;preUpdate&quot;&lt;/span&gt; method=&lt;span class=&quot;code-quote&quot;&gt;&quot;validate&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;
	&lt;span class=&quot;code-tag&quot;&gt;&amp;lt;/lifecycle-callbacks&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &lt;tt&gt;validate()&lt;/tt&gt; method will appear twice in an entity generated from this metadata.&lt;/p&gt;</description>
                <environment>Zend Server 5.1.0, PHP 5.3.5, Apache 2.2.10, Linux (SUSE)</environment>
            <key id="12800">DDC-1257</key>
            <summary>Duplicate PHP methods generated from XML metadata lifecycle-callbacks</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="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="skl">Stephen Lang</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Jul 2011 10:41:58 +0000</created>
                <updated>Sat, 9 Jul 2011 13:16:54 +0000</updated>
                    <resolved>Sat, 9 Jul 2011 13:16:54 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1.1</fixVersion>
                <fixVersion>2.2</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16132" author="beberlei" created="Sat, 9 Jul 2011 13:16:54 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1251] EntityGenerator uses non-existing constant T_AMPERSAND</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1251</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;As per &lt;a href=&quot;http://www.php.net/manual/en/tokens.php&quot; class=&quot;external-link&quot;&gt;http://www.php.net/manual/en/tokens.php&lt;/a&gt; - the T_AMPERSAND token does not exist. I&apos;m not sure what was the intent, but the entity generator fails on the following code:&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;            $elems = array_map(function($el) {
                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $el;
            }, $elems);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Due to the way notices are handled in Symfony, this basically stops the execution of the generator entirely. Not so great.&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;  [ErrorException]                                                                                            
  Notice: Use of undefined constant T_AMPERSAND - assumed &apos;T_AMPERSAND&apos; in ./vendor/doctrine/lib/Doctrine/ORM/Tools/EntityGenerator.php line 454
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Commenting out the offending line makes it work fine though, so I think it&apos;s just choking while expecting a function that takes args by reference or something.&lt;/p&gt;</description>
                <environment>Irrelevant</environment>
            <key id="12791">DDC-1251</key>
            <summary>EntityGenerator uses non-existing constant T_AMPERSAND</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</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="seldaek">Jordi Boggiano</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Jul 2011 15:45:46 +0000</created>
                <updated>Sat, 9 Jul 2011 12:57:33 +0000</updated>
                    <resolved>Sat, 9 Jul 2011 12:57:33 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1.1</fixVersion>
                <fixVersion>2.2</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16131" author="beberlei" created="Sat, 9 Jul 2011 12:57:33 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1022] Wakeup behavior difference between proxy and eager-loaded instance</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1022</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When an object is reconstituted from the persistent storage the unserialize trick is used. That means &lt;tt&gt;__wakeup()&lt;/tt&gt; is called, which is useful to do further initialization as needed.&lt;/p&gt;

&lt;p&gt;If the object is lazy loaded a proxy is generated. That proxy is generated with &lt;tt&gt;new&lt;/tt&gt; and thus no &lt;tt&gt;_&lt;em&gt;wakeup()&lt;/tt&gt; is called. When the proxy is eventually initialized still no call to &lt;tt&gt;&lt;/em&gt;_wakeup()&lt;/tt&gt; is done, thus initialization code that is &quot;usually&quot; executed is not called when an object is lazy-loaded.&lt;/p&gt;

&lt;p&gt;That is a semantical error.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12364">DDC-1022</key>
            <summary>Wakeup behavior difference between proxy and eager-loaded instance</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="k-fish">Karsten Dambekalns</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Feb 2011 04:15:50 +0000</created>
                <updated>Sat, 9 Jul 2011 12:39:36 +0000</updated>
                    <resolved>Sat, 9 Jul 2011 12:39:36 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1.1</fixVersion>
                <fixVersion>2.2</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15385" author="beberlei" created="Sat, 26 Feb 2011 07:08:33 +0000"  >&lt;p&gt;__wakeup() shouldn&apos;t be used as per definition of an entity, &lt;a href=&quot;http://www.doctrine-project.org/docs/orm/2.0/en/cookbook/implementing-wakeup-or-clone.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/orm/2.0/en/cookbook/implementing-wakeup-or-clone.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For post initialization &quot;postLoad()&quot; should be used.&lt;/p&gt;</comment>
                    <comment id="15395" author="k-fish" created="Sat, 26 Feb 2011 12:18:11 +0000"  >&lt;p&gt;You write &lt;cite&gt;shouldn&apos;t be used&lt;/cite&gt;, but that seems somewhat strange, given that the page you point to explicitly says &lt;cite&gt;However, it is quite easy to make use of these methods in a safe way by guarding the custom wakeup or clone code with an entity identity check, as demonstrated in the following sections.&lt;/cite&gt;&lt;/p&gt;

&lt;p&gt;And still the issue remains that eager-loaded instances created with the unserialize trick &lt;b&gt;do&lt;/b&gt; call &lt;tt&gt;wakeup()&lt;/tt&gt; (of course) but this does not happen when being lazy-loaded. &lt;em&gt;Inconsistency&lt;/em&gt;, it screams... &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="16129" author="beberlei" created="Sat, 9 Jul 2011 09:31:09 +0000"  >&lt;p&gt;I changed my mind, this is valid&lt;/p&gt;</comment>
                    <comment id="16130" author="beberlei" created="Sat, 9 Jul 2011 12:39:36 +0000"  >&lt;p&gt;Fixed in 2.0.7, 2.1.1 and in master&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1230] entity state is not set to STATE_REMOVED when removing an entity</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1230</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The UnitOfWork never sets the state to STATE_REMOVED in the map when scheduling an entity for delete. This means that the UnitOfWork will never tell you that the entity is in STATE_REMOVED when asking for its state but will return STATE_MANAGED&lt;/p&gt;</description>
                <environment></environment>
            <key id="12752">DDC-1230</key>
            <summary>entity state is not set to STATE_REMOVED when removing an 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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="stof">Christophe Coevoet</reporter>
                        <labels>
                    </labels>
                <created>Mon, 27 Jun 2011 09:27:43 +0000</created>
                <updated>Tue, 28 Jun 2011 19:39:28 +0000</updated>
                    <resolved>Tue, 28 Jun 2011 19:39:28 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16090" author="beberlei" created="Tue, 28 Jun 2011 19:39:28 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1224] QueryBuilder delete issues CREATE TEMPORARY TABLE error on PostgreSQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1224</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When I try to issue a delete an Class Table Inheritance Entity using QueryBuilder and I&apos;m using schemas on tablename (for Postgres), I got the following error from postgres:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42P16&amp;#93;&lt;/span&gt;: Invalid table definition: 7 ERROR: temporary tables cannot specify a schema name &lt;/p&gt;

&lt;p&gt;This occurs because Doctrine\ORM\Mapping\ClassMetadataInfo::getTemporaryIdTableName() returns just &quot;$this-&amp;gt;table&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;name&amp;#39;&amp;#93;&lt;/span&gt; . &apos;_id_tmp&apos;&quot;, and when my entity is declared with  @Table(name=&quot;feed.tb_feed&quot;), obviously I will got error.&lt;/p&gt;

&lt;p&gt;Temporary tables are created in a special schema in Postgres, and I&apos;m thinking to convert the tablename from the class metadata from feed.tb_feed to feed_tb_feed into the getTemporaryIdTableName method with a single str_replace. That works for Postgres, but I don&apos;t mind what can happen in another DBMS.&lt;/p&gt;

&lt;p&gt;Any suggestions?&lt;/p&gt;</description>
                <environment>PostgreSQL 8.4</environment>
            <key id="12737">DDC-1224</key>
            <summary>QueryBuilder delete issues CREATE TEMPORARY TABLE error on PostgreSQL</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="kassner">Rafael Kassner</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Jun 2011 13:06:32 +0000</created>
                <updated>Sun, 26 Jun 2011 08:13:31 +0000</updated>
                    <resolved>Sun, 26 Jun 2011 08:13:31 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16069" author="beberlei" created="Sun, 26 Jun 2011 08:13:31 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1211] Expr::literal problem with numeric value 0</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1211</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I&apos;m using master branch of Doctrine 2. Including an Expr with a numeric 0 value (not 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;$value = 0;

$qb-&amp;gt;expr()-&amp;gt;gte($field, $qb-&amp;gt;expr()-&amp;gt;literal($value));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Expr::literal method will return an empty string (&apos;&apos;) instead of &apos;0&apos;, which causes that this expression be 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;entity.myField &amp;gt;=  
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;instead of:&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.miField &amp;gt;= &apos;0&apos;&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This makes the query fail. Tracking the issue down I&apos;ve found this on Expr\Base::add 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;public&lt;/span&gt; function add($arg)
    {
         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( ! empty($arg) || ($arg &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; self &amp;amp;&amp;amp; $arg-&amp;gt;count() &amp;gt; 0)) {
            &lt;span class=&quot;code-comment&quot;&gt;// If we decide to keep Expr\Base instances, we can use &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; check
&lt;/span&gt;            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( ! is_string($arg)) {
                $class = get_class($arg);

                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( ! in_array($class, $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_allowedClasses)) {
                    &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \InvalidArgumentException(&lt;span class=&quot;code-quote&quot;&gt;&quot;Expression of type &apos;$class&apos; not allowed in &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; context.&quot;&lt;/span&gt;);
                }
            }

            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_parts[] = $arg;
        }
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem is that empty function returns true if you pass &apos;0&apos;, so a call to Expr\Base::add would end on NOT adding &apos;0&apos; to $this-&amp;gt;_parts array. That&apos;s why it finally returns &apos;&apos;.&lt;/p&gt;

&lt;p&gt;I wanted to make the fix for this but I&apos;m having issues running the phing build task. Which are the steps to follow to run the tests? Running phing build task I get on the &quot;test&quot; task:&lt;/p&gt;

&lt;p&gt;    Could not create task/type: &apos;nativephpunit&apos;. Make sure that this class has been declared using taskdef / typedef.&lt;/p&gt;



&lt;p&gt;Thanks!&lt;/p&gt;</description>
                <environment>Apache 2.2.16&lt;br/&gt;
PHP 5.3.3&lt;br/&gt;
Ubuntu 11</environment>
            <key id="12718">DDC-1211</key>
            <summary>Expr::literal problem with numeric value 0</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="comfortablynumb">Gustavo Falco</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Jun 2011 16:21:32 +0000</created>
                <updated>Sun, 19 Jun 2011 08:27:51 +0000</updated>
                    <resolved>Sun, 19 Jun 2011 08:27:51 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16016" author="beberlei" created="Sun, 19 Jun 2011 08:04:27 +0000"  >&lt;p&gt;Assigned to guilherme, i suppose we could change the !empty($arg) to $arg !== null ?&lt;/p&gt;</comment>
                    <comment id="16020" author="beberlei" created="Sun, 19 Jun 2011 08:27:51 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-849] PersistentCollection::clear() doesn&apos;t clear the collection</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-849</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Clearing ManyToMany association doesn&apos;t work. I needed to clear the roles of the user (after form submit) and then add the checked roles. Also counting them doesn&apos;t work properly.&lt;/p&gt;

&lt;p&gt;See the clearRoles method in the attachment.&lt;/p&gt;

&lt;p&gt;//EDIT: Don&apos;t know if it&apos;s important but the association is bidirectional.&lt;/p&gt;</description>
                <environment>PHP 5.3.2&lt;br/&gt;
Doctrine 2 ORM soure codes form GitHub (2010-10-31)</environment>
            <key id="12046">DDC-849</key>
            <summary>PersistentCollection::clear() doesn&apos;t clear the collection</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="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="romanb">Roman S. Borschel</assignee>
                                <reporter username="enumag">J&#225;chym Tou&#353;ek</reporter>
                        <labels>
                    </labels>
                <created>Sun, 31 Oct 2010 05:46:21 +0000</created>
                <updated>Sun, 19 Jun 2011 08:09:17 +0000</updated>
                    <resolved>Sun, 19 Jun 2011 08:09:17 +0000</resolved>
                                            <fixVersion>2.0.7</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="14643" author="romanb" created="Sun, 31 Oct 2010 06:03:23 +0000"  >&lt;p&gt;Can you provide more context, like the code that is using the entity? Thanks.&lt;/p&gt;</comment>
                    <comment id="14675" author="enumag" created="Fri, 5 Nov 2010 19:33:11 +0000"  >&lt;p&gt;Code is something like this:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&amp;lt;?php
&lt;span class=&quot;code-comment&quot;&gt;//$user is instance of UserEntity from the attachment
&lt;/span&gt;$user-&amp;gt;clearRoles();

&lt;span class=&quot;code-comment&quot;&gt;//$role is instance of RoleEntity which is in bidirectional association wirth user
&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;//$role sometimes is one of those previously cleared (assume it is &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; example)
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (...) {
    $user-&amp;gt;addRole($role);
/* which calles &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;:
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function addRole(RoleEntity $entity) {
        &lt;span class=&quot;code-comment&quot;&gt;//contains method is &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; positive (the entity was removed by clear, but contains still returns TRUE)
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;roles-&amp;gt;contains($entity)) {
            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;roles[] = $entity;
        }
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;;
    }
*/
}

&lt;span class=&quot;code-comment&quot;&gt;//$em is instance of EntityManager
&lt;/span&gt;$em-&amp;gt;flush();
?&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Ultimately count method returns wrong number and contains is false positive. I know that when i don&apos;t use the contains condition it works but that&apos;s not the point.&lt;/p&gt;</comment>
                    <comment id="14728" author="beberlei" created="Sat, 13 Nov 2010 04:20:23 +0000"  >&lt;p&gt;Sorry, but isn&apos;t then PersistentCollection::remove() and ::contains() wrong not clear()?&lt;/p&gt;

&lt;p&gt;I think i have a good grasp on the issue and try to reproduce it.&lt;/p&gt;</comment>
                    <comment id="14735" author="beberlei" created="Mon, 15 Nov 2010 13:04:13 +0000"  >&lt;p&gt;I added a testcase tests/Doctrine/Tests/ORM/Functional/Ticket/DDC849Test.php that shows everything is working correctly. I cannot reproduce your problem.&lt;/p&gt;

&lt;p&gt;Can you try to extend this phpunit testcase to show the failure?&lt;/p&gt;

&lt;p&gt;I downgrade to trivial and detach the issue from RC1&lt;/p&gt;</comment>
                    <comment id="16018" author="beberlei" created="Sun, 19 Jun 2011 08:09:05 +0000"  >&lt;p&gt;Duplicate to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1189&quot; title=&quot;PersistentCollection::clear() does not cause the collection to be initialized&quot;&gt;&lt;del&gt;DDC-1189&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="16019" author="beberlei" created="Sun, 19 Jun 2011 08:09:17 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                <outwardlinks description="duplicates">
                            <issuelink>
            <issuekey id="12690">DDC-1189</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                    <attachment id="10833" name="User.php" size="1213" author="enumag" created="Sun, 31 Oct 2010 05:46:21 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1189] PersistentCollection::clear() does not cause the collection to be initialized</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1189</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;If clear() is called on an uninitialized PersistentCollection it needs to set the collection to be initialized.&lt;/p&gt;

&lt;p&gt;An example of where this can cause problems:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Call clear() on an uninitialized collection&lt;/li&gt;
	&lt;li&gt;Check if an entity is in that collection using contains($entity)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This can return a false positive if the entity was previously in the collection.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12690">DDC-1189</key>
            <summary>PersistentCollection::clear() does not cause the collection to be initialized</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="ccapndave">Dave Keen</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 Jun 2011 16:06:18 +0000</created>
                <updated>Sun, 19 Jun 2011 08:09:03 +0000</updated>
                    <resolved>Sun, 19 Jun 2011 07:56:26 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.0.7</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16015" author="beberlei" created="Sun, 19 Jun 2011 07:56:26 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="12046">DDC-849</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                        <issuelinktype id="10001">
                <name>Reference</name>
                                <outwardlinks description="relates to">
                            <issuelink>
            <issuekey id="12261">DDC-956</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>