<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sun May 19 17:00:19 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.2.2%22&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.2.2%22</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="13" total="13"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-1771] CLI generation of proxies for abstract STI base classes</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1771</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When I use the CLI tool to generate proxies manually (orm:generate-proxies), a proxy is generated for the abstract entity below, but this proxy is not declared abstract itself. The entity contains abstract methods, and the proxy obviously does not implement these methods, so it, too, must be declared abstract. Because it is not, the next time I try to generate proxies in this manner, I receive a PHP Fatal error:&lt;/p&gt;

&lt;p&gt;Class Proxies&amp;#95;&lt;em&gt;CG&lt;/em&gt;_\Ranking\AbstractRule contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Ranking\AbstractRule::myAbstractMethod)&lt;/p&gt;

&lt;p&gt;My workaround is to delete this proxy first and then regenerate. While a minor inconvenience at this point, it would be great if the proxy generation code could mark proxies as abstract when necessary to avoid these errors.&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;

&lt;p&gt;&amp;#8211; Entity&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@Entity&lt;/li&gt;
	&lt;li&gt;@InheritanceType(&quot;SINGLE_TABLE&quot;)&lt;/li&gt;
	&lt;li&gt;@DiscriminatorColumn(name=&quot;ranking_rule_type_id&quot;, type=&quot;integer&quot;)&lt;/li&gt;
	&lt;li&gt;@DiscriminatorMap(
{
 *  1 = &quot;ConcreteRuleOne&quot;,
 *  2 = &quot;ConcreteRuleTwo&quot;,
 *  3 = &quot;ConcreteRuleThree&quot;
 * }
&lt;p&gt;)&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;@Table(name=&quot;ranking_rules&quot;)&lt;br/&gt;
 */&lt;br/&gt;
abstract class AbstractRule&lt;br/&gt;
{&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&amp;#8211; Generated proxy&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.&lt;br/&gt;
 */&lt;br/&gt;
class AbstractRule extends \Ranking\AbstractRule implements \Doctrine\ORM\Proxy\Proxy&lt;br/&gt;
{&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="13617">DDC-1771</key>
            <summary>CLI generation of proxies for abstract STI base classes</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="breathe">Brent</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Apr 2012 23:14:13 +0000</created>
                <updated>Sat, 7 Apr 2012 16:17:09 +0000</updated>
                    <resolved>Sat, 7 Apr 2012 08:31:44 +0000</resolved>
                            <version>2.2.0-RC1</version>
                                <fixVersion>2.2.2</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17828" author="beberlei" created="Sat, 7 Apr 2012 08:31:44 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                    <comment id="17832" author="breathe" created="Sat, 7 Apr 2012 16:17:09 +0000"  >&lt;p&gt;Thank you, sir.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1766] Reintroduce old result cache as hydration cache</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1766</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The old result cache should be reintroduced as hydration cache, since it obviously is much faster than just result caching by avoiding hydration.&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;        $users = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;createQuery($dql)
                      -&amp;gt;setHydrationCacheProfile(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; QueryCacheProfile(&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;, &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;, $cache))
                      -&amp;gt;getResult();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13608">DDC-1766</key>
            <summary>Reintroduce old result cache as hydration cache</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>Wed, 4 Apr 2012 20:31:01 +0000</created>
                <updated>Sat, 7 Apr 2012 07:12:52 +0000</updated>
                    <resolved>Sat, 7 Apr 2012 07:12:52 +0000</resolved>
                                            <fixVersion>2.2.2</fixVersion>
                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17805" author="beberlei" created="Sat, 7 Apr 2012 07:12:52 +0000"  >&lt;p&gt;Implemented Hydration Cache.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1764] [GH-326] 2.1.x setDiscriminatorMap fix</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1764</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of smatyas:&lt;/p&gt;

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

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

&lt;p&gt;Fixing a bug when calling setDiscriminatorMap from multiple sources (ie: from Events::loadClassMetadata and annotation).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1763&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1763&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13605">DDC-1764</key>
            <summary>[GH-326] 2.1.x setDiscriminatorMap fix</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>Wed, 4 Apr 2012 13:48:13 +0000</created>
                <updated>Sat, 7 Apr 2012 07:47:42 +0000</updated>
                    <resolved>Sat, 7 Apr 2012 07:47:42 +0000</resolved>
                                            <fixVersion>2.1.7</fixVersion>
                <fixVersion>2.2.2</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17742" author="beberlei" created="Wed, 4 Apr 2012 13:49:33 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-327&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/327&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/327&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17743" author="beberlei" created="Wed, 4 Apr 2012 13:52:21 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-328&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/328&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/328&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17750" author="beberlei" created="Wed, 4 Apr 2012 19:59:03 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-328&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/328&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/328&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17782" author="beberlei" created="Fri, 6 Apr 2012 13:50:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-328&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/328&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/328&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17804" author="beberlei" created="Sat, 7 Apr 2012 07:12:38 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-327&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/327&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/327&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17813" author="beberlei" created="Sat, 7 Apr 2012 07:21:03 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-328&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/328&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/328&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17824" author="beberlei" created="Sat, 7 Apr 2012 07:44:23 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-327&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/327&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/327&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17825" author="beberlei" created="Sat, 7 Apr 2012 07:44:34 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-328&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/328&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/328&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17826" author="beberlei" created="Sat, 7 Apr 2012 07:47:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-326&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/326&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/326&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1763] Fixing a bug when calling setDiscriminatorMap from multiple sources (ie: from Events::loadClassMetadata and annotation).</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1763</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;We tried to set discriminator map in &lt;a href=&quot;https://github.com/Netpositive/NetpositiveDiscriminatorMapBundle&quot; class=&quot;external-link&quot;&gt;https://github.com/Netpositive/NetpositiveDiscriminatorMapBundle&lt;/a&gt; both from Events::loadClassMetadata and annotation.&lt;/p&gt;

&lt;p&gt;Pull request created on 2.1.x, 2.2, master branches.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13604">DDC-1763</key>
            <summary>Fixing a bug when calling setDiscriminatorMap from multiple sources (ie: from Events::loadClassMetadata and annotation).</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="smatyas">Matyas Somfai</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Apr 2012 13:45:43 +0000</created>
                <updated>Sat, 7 Apr 2012 07:48:16 +0000</updated>
                    <resolved>Sat, 7 Apr 2012 07:48:16 +0000</resolved>
                            <version>2.1.6</version>
                <version>2.2</version>
                <version>Git Master</version>
                                <fixVersion>2.1.7</fixVersion>
                <fixVersion>2.2.2</fixVersion>
                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17772" author="burci" created="Thu, 5 Apr 2012 11:02:43 +0000"  >&lt;p&gt;Pull requests:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/326&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/326&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/327&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/327&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/328&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/328&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1705] BasicEntityPersister throws error undefined index</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1705</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In the BasicEntityPersister in the _getInsertSQL function when you are foreaching the columns you make a check&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_columnTypes[$column]) &amp;amp;&amp;amp;
                        isset($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_class-&amp;gt;fieldMappings[$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_class-&amp;gt;fieldNames[$column]][&apos;requireSQLConversion&apos;])) {
                        $type = Type::getType($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_columnTypes[$column]);
                        $placeholder = $type-&amp;gt;convertToDatabaseValueSQL(&apos;?&apos;, $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_platform);
                    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;the problem is in&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;  isset($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_class-&amp;gt;fieldMappings[$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_class-&amp;gt;fieldNames[$column]][&apos;requireSQLConversion&apos;])
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt; because you are not checking if it is set &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;_class-&amp;gt;fieldNames[$column]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;i got that problem when was saving ManyToOne association&lt;/p&gt;</description>
                <environment></environment>
            <key id="13529">DDC-1705</key>
            <summary>BasicEntityPersister throws error undefined index</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="vigor_bg">victor Velkov</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Mar 2012 08:31:26 +0000</created>
                <updated>Sun, 1 Apr 2012 10:52:07 +0000</updated>
                    <resolved>Sun, 1 Apr 2012 10:52:07 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.2.2</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17624" author="schwede" created="Mon, 19 Mar 2012 21:30:26 +0000"  >&lt;p&gt;I got the same error and used error handling to throw an exception of this notice:&lt;/p&gt;

&lt;p&gt;===================&lt;br/&gt;
PHP Fatal error:  Uncaught exception &apos;ErrorException&apos; with message &apos;Undefined index: currentPrice_id&apos; in /usr/share/php/Doctrine/ORM/Persisters/BasicEntityPersister.php:1146&lt;br/&gt;
Stack trace:&lt;br/&gt;
#0 /usr/share/php/Doctrine/ORM/Persisters/BasicEntityPersister.php(1146): exception_error_handler(8, &apos;Undefined index...&apos;, &apos;/usr/share/php/...&apos;, 1146, Array)&lt;br/&gt;
#1 /usr/share/php/Doctrine/ORM/Persisters/BasicEntityPersister.php(225): Doctrine\ORM\Persisters\BasicEntityPersister-&amp;gt;_getInsertSQL()&lt;br/&gt;
#2 /usr/share/php/Doctrine/ORM/UnitOfWork.php(896): Doctrine\ORM\Persisters\BasicEntityPersister-&amp;gt;executeInserts()&lt;br/&gt;
#3 /usr/share/php/Doctrine/ORM/UnitOfWork.php(304): Doctrine\ORM\UnitOfWork-&amp;gt;executeInserts(Object(Doctrine\ORM\Mapping\ClassMetadata))&lt;br/&gt;
#4 /usr/share/php/Doctrine/ORM/EntityManager.php(355): Doctrine\ORM\UnitOfWork-&amp;gt;commit(NULL)&lt;br/&gt;
#5 /var/www/app/module/Application/src/Application/Entity/Model.php(29): Doctrine\ORM\EntityManager-&amp;gt;flush()&lt;br/&gt;
#6 /var/www/app/module/Application/src/Application/Entity/ in /usr/share/php/Doctrine/ORM/Persisters/BasicEntityPersister.php on line 1146&lt;/p&gt;

&lt;p&gt;===================&lt;/p&gt;

&lt;p&gt;My mappings look like this:&lt;/p&gt;

&lt;p&gt;	/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;/li&gt;
	&lt;li&gt;@ORM\OneToMany(targetEntity=&quot;Price&quot;, mappedBy=&quot;product&quot;, cascade=
{&quot;all&quot;})&lt;br/&gt;
	 * @ORM\OrderBy({&quot;date&quot; = &quot;DESC&quot;})&lt;br/&gt;
	 */&lt;br/&gt;
	protected $prices;&lt;br/&gt;
&lt;br/&gt;
	/**&lt;br/&gt;
	 * @ORM\ManyToOne(targetEntity=&quot;Price&quot;, inversedBy=&quot;currentProducts&quot;,cascade={&quot;all&quot;}
&lt;p&gt;)&lt;br/&gt;
	 */&lt;br/&gt;
	protected $currentPrice;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    <comment id="17714" author="beberlei" created="Sun, 1 Apr 2012 10:52:07 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1698] Inconsistent proxy file name &amp; namespace result in __PHP_Incomplete_Class when unserializing entities</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1698</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Starting with Doctrine 2.2, the Proxy classes have inconsistent naming with their file name, which raises problems with class autoloading.&lt;br/&gt;
For example, a class named &lt;b&gt;Application\Model\User&lt;/b&gt; creates the following proxy class:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Application\Proxy\__CG__\Application\Model\User
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This class is located in the following file:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Application/Proxy/__CG__ApplicationModelUser.php
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But whe we serialize such an entity, then unserialize it in another session, the framework autoloader expects the class to be located in:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Application/Proxy/__CG__/Application/Model/User.php
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But it is not.&lt;br/&gt;
As a result, a __PHP_Incomplete_Class is created instead of the expected proxy class.&lt;/p&gt;

&lt;p&gt;I&apos;m not sure whether this is an intended behavior, but I would assume this is a bug.&lt;/p&gt;</description>
                <environment>Irrelevant</environment>
            <key id="13521">DDC-1698</key>
            <summary>Inconsistent proxy file name &amp; namespace result in __PHP_Incomplete_Class when unserializing entities</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/reopened.png">Reopened</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="benjamin">Benjamin Morel</reporter>
                        <labels>
                    </labels>
                <created>Tue, 13 Mar 2012 00:11:42 +0000</created>
                <updated>Sun, 6 Jan 2013 13:18:41 +0000</updated>
                                    <version>2.2</version>
                <version>2.2.1</version>
                                <fixVersion>2.2.2</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="17561" author="benjamin" created="Tue, 13 Mar 2012 16:46:38 +0000"  >&lt;p&gt;It looks like there is an even broader problem with the new _&lt;em&gt;CG&lt;/em&gt;_ prefix; the PSR-0 standard for autoloading states that the underscores should be handled this way:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;\namespace\package\Class_Name =&amp;gt; {...}/namespace/package/Class/Name.php
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Which means that in the above example, it could even expect the file to be located in:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Application/Proxy///CG///Application/Model/User.php
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;... which is far away from the actual location.&lt;br/&gt;
Upgrade to 2.2 broke this code, for us.&lt;/p&gt;</comment>
                    <comment id="17565" author="beberlei" created="Wed, 14 Mar 2012 18:30:24 +0000"  >&lt;p&gt;Proxy classes do not follow PSR-0. For the case unserializing objects we should provide an extra autoloader i guess.&lt;/p&gt;

&lt;p&gt;See here how symfony does it &lt;a href=&quot;https://github.com/doctrine/DoctrineBundle/blob/master/DoctrineBundle.php#L57&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/DoctrineBundle/blob/master/DoctrineBundle.php#L57&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17566" author="beberlei" created="Wed, 14 Mar 2012 19:12:07 +0000"  >&lt;p&gt;See &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/9b4d60897dfc7e9b165712428539e694ec596c80&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/9b4d60897dfc7e9b165712428539e694ec596c80&lt;/a&gt; and &lt;a href=&quot;https://github.com/doctrine/orm-documentation/commit/01381fae1ff3d4944086c7cfe46721925bf6ca15&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/orm-documentation/commit/01381fae1ff3d4944086c7cfe46721925bf6ca15&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17589" author="benjamin" created="Wed, 14 Mar 2012 22:36:59 +0000"  >&lt;p&gt;Thanks for the quick fix, Benjamin.&lt;br/&gt;
However, I have to admit that I&apos;m not fully happy with the fix, as we (and probably many others) are not using the Doctrine autoloader.&lt;br/&gt;
I supposed that the purpose of PSR-0 was precisely not to be tied to a particular autoloader implementation, and this benefit is lost with this version of Doctrine.&lt;/p&gt;

&lt;p&gt;You mentioned in the doc that the proxies are not PSR-0 compliant &quot;for implementation reasons&quot;; as this was working fine before 2.2, could you please explain what requirement prevents Doctrine from keeping the previous naming convention?&lt;/p&gt;</comment>
                    <comment id="17671" author="beberlei" created="Thu, 29 Mar 2012 09:56:11 +0000"  >&lt;p&gt;In 2.1 the proxies are not PSR-0 compatible themselves, however their class naming is simpler.&lt;/p&gt;

&lt;p&gt;In 2.2 we changed proxy names so that you can derive the original name of the proxy by searching for the _&lt;em&gt;CG&lt;/em&gt;_ flag. This flag obviously contains the __ chars that some PSR autoloaders detect as directory seperators. I agree this is an unfortunate decision, but it was done this way.&lt;/p&gt;

&lt;p&gt;I do think however that we can automatically register the proxy atuoloader (if not yet done)  in EntityManager#create(). This would hide this fact from developers automatically.&lt;/p&gt;</comment>
                    <comment id="18898" author="benjamin" created="Mon, 29 Oct 2012 21:37:00 +0000"  >&lt;p&gt;@Benjamin Eberlei&lt;br/&gt;
In 2.3 we still have to manually call Autoloader::register() before unserializing entities that may contain proxies.&lt;br/&gt;
So EntityManager::create() still doesn&apos;t register it. Is there a plan to add this feature?&lt;/p&gt;</comment>
                    <comment id="19231" author="beberlei" created="Sun, 6 Jan 2013 10:10:22 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=benjamin&quot; class=&quot;user-hover&quot; rel=&quot;benjamin&quot;&gt;Benjamin Morel&lt;/a&gt; Not at the moment, seems too dangerous for me since it might produce race conditions. This should really be done in the bootstrap of the system.&lt;/p&gt;

&lt;p&gt;We need to document this though.&lt;/p&gt;</comment>
                    <comment id="19234" author="benjamin" created="Sun, 6 Jan 2013 13:18:41 +0000"  >&lt;p&gt;Ok, thanks for your answer!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1695] SQLs for PostgreSQL case sensite tables/fields are wrongly generated</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1695</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The SQLs for case sensitive schemas in postgreSQL are wronly generated.&lt;/p&gt;

&lt;p&gt;Example:&lt;br/&gt;
Schema:&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;CREATE TABLE &lt;span class=&quot;code-quote&quot;&gt;&quot;News&quot;&lt;/span&gt; (
  &lt;span class=&quot;code-quote&quot;&gt;&quot;IdNews&quot;&lt;/span&gt; serial NOT NULL,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;IdUser&quot;&lt;/span&gt; bigint NOT NULL,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;IdLanguage&quot;&lt;/span&gt; integer NOT NULL,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;IdCondition&quot;&lt;/span&gt; integer,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;IdHealthProvider&quot;&lt;/span&gt; integer,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;IdSpeciality&quot;&lt;/span&gt; integer,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;IdMedicineType&quot;&lt;/span&gt; integer,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;IdTreatment&quot;&lt;/span&gt; integer,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;Title&quot;&lt;/span&gt; character varying,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;SmallText&quot;&lt;/span&gt; character varying,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;LongText&quot;&lt;/span&gt; character varying,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;PublishDate&quot;&lt;/span&gt; timestamp with time zone,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;IdxNews&quot;&lt;/span&gt; tsvector,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;Highlight&quot;&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; NOT NULL DEFAULT &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;Order&quot;&lt;/span&gt; integer NOT NULL DEFAULT 0,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;Deleted&quot;&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; NOT NULL DEFAULT &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;Active&quot;&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; NOT NULL DEFAULT &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;,
  &lt;span class=&quot;code-quote&quot;&gt;&quot;UpdateToHighlighted&quot;&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; DEFAULT &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;,
  CONSTRAINT &lt;span class=&quot;code-quote&quot;&gt;&quot;News_pkey&quot;&lt;/span&gt; PRIMARY KEY (&lt;span class=&quot;code-quote&quot;&gt;&quot;IdNews&quot;&lt;/span&gt; ));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Object (I added quotes trying to generate the SQLs quoted.:&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

namespace GlobalTreatments\ApplicationBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;News&quot;&lt;/span&gt;&quot;&quot;)
 * @ORM\Entity
 */
class News
{
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer $idNews
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdNews&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;integer&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;SEQUENCE&quot;&lt;/span&gt;)
     * @ORM\SequenceGenerator(sequenceName=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;News_IdNews_seq&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, allocationSize=&quot;&lt;/span&gt;1&lt;span class=&quot;code-quote&quot;&gt;&quot;, initialValue=&quot;&lt;/span&gt;1&quot;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idNews;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; bigint $iduser
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdUser&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;bigint&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idUser;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer $idLanguage
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdLanguage&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;integer&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idLanguage;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer $idCondition
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdCondition&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;integer&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idCondition;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer $idHealthProvider
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdHealthProvider&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;integer&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idHealthProvider;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer $idSpeciality
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdSpeciality&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;integer&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idSpeciality;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer $idMedicineType
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdMedicineType&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;integer&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idMedicineType;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer $idTreatment
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdTreatment&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;integer&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idTreatment;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string $title
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;Title&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;string&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $title;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string $smallText
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;SmallText&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;string&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $smallText;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string $longText
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;LongText&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;string&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $longText;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; datetimetz $publishDate
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;PublishDate&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;datetimetz&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $publishDate;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; tsvector $idxNews
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdxNews&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;tsvector&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $idxNews;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; $highlight
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;Highlight&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;&lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $highlight;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer $order
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;Order&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;integer&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $order;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; $deleted
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;Deleted&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;&lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $deleted;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; $active
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;Active&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;&lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $active;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; $updateToHighlighted
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;UpdateToHighlighted&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, type=&quot;&lt;/span&gt;&lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;&quot;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $updateToHighlighted;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; condition
     *
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Condition&quot;&lt;/span&gt;)
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdCondition&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, referencedColumnName=&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;IdCondition&quot;&lt;/span&gt;&quot;&quot;)
     * })
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $condition;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; healthProvider
     *
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;HealthProvider&quot;&lt;/span&gt;)
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdHealthProvider&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, referencedColumnName=&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;IdHealthProvider&quot;&lt;/span&gt;&quot;&quot;)
     * })
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $healthProvider;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; language
     *
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Language&quot;&lt;/span&gt;)
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdLanguage&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, referencedColumnName=&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;IdLanguage&quot;&lt;/span&gt;&quot;&quot;)
     * })
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $language;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; medicineType
     *
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;MedicineType&quot;&lt;/span&gt;)
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdMedicineType&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, referencedColumnName=&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;IdMedicineType&quot;&lt;/span&gt;&quot;&quot;)
     * })
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $medicineType;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; speciality
     *
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Speciality&quot;&lt;/span&gt;)
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdSpeciality&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, referencedColumnName=&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;IdSpeciality&quot;&lt;/span&gt;&quot;&quot;)
     * })
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $speciality;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; treatment
     *
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Treatment&quot;&lt;/span&gt;)
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdTreatment&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, referencedColumnName=&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;IdTreatment&quot;&lt;/span&gt;&quot;&quot;)
     * })
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $treatment;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; user
     *
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;User&quot;&lt;/span&gt;)
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;&quot;IdUser&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;, referencedColumnName=&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;&quot;IdUser&quot;&lt;/span&gt;&quot;&quot;)
     * })
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $user;

    ....

}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;DQL:&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;&apos;SELECT n.smallText, n.publishDate &apos; .
&apos;FROM News n &apos; .
	&apos;INNER JOIN n.language la &apos; .
&apos;WHERE la.languageCode = :languageCode &apos; .
&apos;ORDER BY n.publishDate DESC&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Generated SQL:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;SELECT &lt;span class=&quot;code-quote&quot;&gt;&quot;0_.&quot;&lt;/span&gt;SmallText&lt;span class=&quot;code-quote&quot;&gt;&quot; AS &quot;&lt;/span&gt;SmallText&lt;span class=&quot;code-quote&quot;&gt;&quot;0, &quot;&lt;/span&gt;0_.&lt;span class=&quot;code-quote&quot;&gt;&quot;PublishDate&quot;&lt;/span&gt; AS &lt;span class=&quot;code-quote&quot;&gt;&quot;PublishDate&quot;&lt;/span&gt;1 FROM &lt;span class=&quot;code-quote&quot;&gt;&quot;News&quot;&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;0_ INNER JOIN &quot;&lt;/span&gt;Language&lt;span class=&quot;code-quote&quot;&gt;&quot; &quot;&lt;/span&gt;1_ ON &lt;span class=&quot;code-quote&quot;&gt;&quot;0_.&quot;&lt;/span&gt;IdLanguage&lt;span class=&quot;code-quote&quot;&gt;&quot; = &quot;&lt;/span&gt;1_.&lt;span class=&quot;code-quote&quot;&gt;&quot;IdLanguage&quot;&lt;/span&gt; WHERE &lt;span class=&quot;code-quote&quot;&gt;&quot;1_.&quot;&lt;/span&gt;LanguageCode&lt;span class=&quot;code-quote&quot;&gt;&quot; = ? ORDER BY &quot;&lt;/span&gt;0_.&lt;span class=&quot;code-quote&quot;&gt;&quot;PublishDate&quot;&lt;/span&gt; DESC LIMIT 6
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Notice there are unmattched &quot; in the SQL.&lt;/p&gt;</description>
                <environment>PostgreSQL 9.x, Symfony 2</environment>
            <key id="13513">DDC-1695</key>
            <summary>SQLs for PostgreSQL case sensite tables/fields are wrongly generated</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="ignaciolarranaga">Ignacio Larranaga</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Mar 2012 03:08:19 +0000</created>
                <updated>Sun, 11 Mar 2012 22:34:37 +0000</updated>
                    <resolved>Sun, 11 Mar 2012 22:34:37 +0000</resolved>
                            <version>2.1.6</version>
                                <fixVersion>2.1.7</fixVersion>
                <fixVersion>2.2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17538" author="ignaciolarranaga" created="Fri, 9 Mar 2012 03:09:09 +0000"  >&lt;p&gt;If there is another approach to specify the table/column names are case sensitive in PGSQL please let me know.&lt;/p&gt;</comment>
                    <comment id="17539" author="ignaciolarranaga" created="Fri, 9 Mar 2012 03:50:20 +0000"  >&lt;p&gt;Just to comment. I also tried the normal quoting.&lt;/p&gt;

&lt;p&gt;Example: @ORM\Column(name=&quot;`IdNews`&quot;, type=&quot;integer&quot;, nullable=false)&lt;/p&gt;

&lt;p&gt;And does not work too because of the same reason.&lt;/p&gt;</comment>
                    <comment id="17540" author="ignaciolarranaga" created="Fri, 9 Mar 2012 05:40:25 +0000"  >&lt;p&gt;Hi, I generate this patch and seems to be working for me (at least what I&apos;m testing right now).&lt;/p&gt;

&lt;p&gt;I used &#180; to quote tables and single attributes (not relationships) and the SQLs are correctly generated.&lt;/p&gt;</comment>
                    <comment id="17542" author="ignaciolarranaga" created="Fri, 9 Mar 2012 15:00:06 +0000"  >&lt;p&gt;Adding a new patch for another files I need to change.&lt;/p&gt;</comment>
                    <comment id="17553" author="beberlei" created="Sun, 11 Mar 2012 22:09:22 +0000"  >&lt;p&gt;Formatted code&lt;/p&gt;</comment>
                    <comment id="17554" author="beberlei" created="Sun, 11 Mar 2012 22:34:37 +0000"  >&lt;p&gt;Fixed and merged into 2.1.x and 2.2 branches&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11169" name="doctrine-2.1.6.patch" size="4479" author="ignaciolarranaga" created="Fri, 9 Mar 2012 15:00:06 +0000" />
                    <attachment id="11168" name="SqlWalker.patch" size="2410" author="ignaciolarranaga" created="Fri, 9 Mar 2012 05:40:25 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1693] SqlWalker doesn&apos;t handle LockMode correctly</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1693</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Both issues are in SqlWalker::walkSelectStatement().&lt;br/&gt;
First is a typo on line 443 in master where LockMode::PESSIMISTIC_OPTIMISTIC is used instead of LockMode::OPTIMISTIC. This results in a fatal undefined class constant error.&lt;br/&gt;
Additionally, LockMode::NONE is not handled and results in an exception. An empty case will solve that issue.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13517">DDC-1693</key>
            <summary>SqlWalker doesn&apos;t handle LockMode correctly</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="bb">Billy Bednar</reporter>
                        <labels>
                    </labels>
                <created>Sun, 11 Mar 2012 08:39:10 +0000</created>
                <updated>Sun, 11 Mar 2012 21:30:42 +0000</updated>
                    <resolved>Sun, 11 Mar 2012 21:30:42 +0000</resolved>
                            <version>2.2-BETA1</version>
                <version>2.2-BETA2</version>
                <version>2.2.0-RC1</version>
                <version>2.2</version>
                <version>2.2.1</version>
                <version>Git Master</version>
                                <fixVersion>2.2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17548" author="beberlei" created="Sun, 11 Mar 2012 21:30:42 +0000"  >&lt;p&gt;Fixed, merged back into 2.2 branch.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1692] doctrine:mapping:convert on entities without primary key</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1692</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;It issn&apos;t possible to use some of the Doctrine tools on entities without primary key. &lt;br/&gt;
Following error appears: &lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;PHP Fatal error:  Call to a member function getColumns() on a non-object in /media/sf_webdev-shared/Symfony/vendor/doctrine/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php on line 133&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;DatabaseDriver tries to get primary key columns without checking if there is any primary key.&lt;/p&gt;</description>
                <environment>Ubuntu Server, PHP: 5.3.6-13ubuntu3.6, Symfony 2.0.11</environment>
            <key id="13516">DDC-1692</key>
            <summary>doctrine:mapping:convert on entities without primary key</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="dave">david</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Mar 2012 17:33:13 +0000</created>
                <updated>Wed, 14 Mar 2012 20:11:13 +0000</updated>
                    <resolved>Wed, 14 Mar 2012 20:11:13 +0000</resolved>
                            <version>2.1.6</version>
                                <fixVersion>2.2.2</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17575" author="beberlei" created="Wed, 14 Mar 2012 20:11:13 +0000"  >&lt;p&gt;Fixed, now throwing an exception.&lt;/p&gt;

&lt;p&gt;Tables without primary keys are not supported by DatabaseDriver.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1683] Doctrine\ORM\Query\Expr\Comparison Doesn&apos;t handle boolean values properly</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1683</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Expected behaviour - Using boolean types in Query Builder&lt;/p&gt;

&lt;p&gt;The following works&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;$qb = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getDoctrine()-&amp;gt;getEntityManager()-&amp;gt;createQueryBuilder();

$qb
    -&amp;gt;select(&apos;entity&apos;)
    -&amp;gt;from(&apos;FooBundle:Entity&apos;, &apos;entity&apos;)
    -&amp;gt;where($qb-&amp;gt;expr()-&amp;gt;eq(&apos;entity.visible&apos;, &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;))
;

$query = $qb-&amp;gt;getQuery();

&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $query-&amp;gt;getResult();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The following throws an &lt;tt&gt;Doctrine/ORM/Query/QueryException&lt;/tt&gt; error &lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Syntax Error&amp;#93;&lt;/span&gt; line 0, col -1: Error: Expected Literal, got end of string.&lt;/tt&gt;&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;$qb = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getDoctrine()-&amp;gt;getEntityManager()-&amp;gt;createQueryBuilder();

$qb
    -&amp;gt;select(&apos;entity&apos;)
    -&amp;gt;from(&apos;FooBundle:Entity&apos;, &apos;entity&apos;)
    -&amp;gt;where($qb-&amp;gt;expr()-&amp;gt;eq(&apos;entity.visible&apos;, &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;))
;

$query = $qb-&amp;gt;getQuery();

&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $query-&amp;gt;getResult();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is due to  &lt;tt&gt;Doctrine\ORM\Query\Expr\Comparison::_toString()&lt;/tt&gt;&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 __toString()
{
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_leftExpr . &apos; &apos; . $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_operator . &apos; &apos; . $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_rightExpr;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When &lt;tt&gt;$this-&amp;gt;_rightExpr === true&lt;/tt&gt; type coercion results in 1, but for false it results in an empty string, thus &lt;br/&gt;
resulting in invalid SQL.&lt;/p&gt;

&lt;p&gt;The following in &lt;tt&gt;Doctrine\ORM\Query\Expr\Comparison::__construct()&lt;/tt&gt; resolves the problem (&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/297&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/297&lt;/a&gt;)&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 __construct($leftExpr, $&lt;span class=&quot;code-keyword&quot;&gt;operator&lt;/span&gt;, $rightExpr)
{
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_leftExpr  = $leftExpr;
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_operator  = $&lt;span class=&quot;code-keyword&quot;&gt;operator&lt;/span&gt;;
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_rightExpr = $rightExpr === &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; ? (&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;) $rightExpr : $rightExpr;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Could be related to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1048&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1048&lt;/a&gt; and &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-949&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-949&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Symfony 2.0.11, MySQL, PDO, PHP Version 5.3.5-1ubuntu7.7</environment>
            <key id="13498">DDC-1683</key>
            <summary>Doctrine\ORM\Query\Expr\Comparison Doesn&apos;t handle boolean values properly</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="peterjmit">Peter Mitchell</reporter>
                        <labels>
                    </labels>
                <created>Tue, 6 Mar 2012 10:53:37 +0000</created>
                <updated>Wed, 14 Mar 2012 19:52:05 +0000</updated>
                    <resolved>Wed, 14 Mar 2012 19:52:05 +0000</resolved>
                            <version>2.1.6</version>
                <version>2.2</version>
                                <fixVersion>2.1.7</fixVersion>
                <fixVersion>2.2.2</fixVersion>
                                <component>DQL</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17572" author="beberlei" created="Wed, 14 Mar 2012 19:52:05 +0000"  >&lt;p&gt;Fixed, but your code is wrong. It has to be&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;$qb-&amp;gt;expr()-&amp;gt;literal(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1648] Primary Keys as Foreign Keys - still not working in  Reverse Engineering in 2.1.6</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1648</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Please, read this old thread - looks like this problem still is not solved &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/sad.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://comments.gmane.org/gmane.comp.php.symfony.symfony2/1398&quot; class=&quot;external-link&quot;&gt;http://comments.gmane.org/gmane.comp.php.symfony.symfony2/1398&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;gt;&amp;gt;The primary key as foreign key limitation is from the 2.0 manual. You are using 2.1 with symfony, which supports this. Please use the correct manual.&lt;/p&gt;

&lt;p&gt;&amp;gt;&amp;gt; The only problem is that the reverse engineering does not support this. You have to reverse engineer yourself, or write a patch to have Doctrine support this. I would really appreciate it &lt;/p&gt;

&lt;p&gt;As I understand it is supported in the &quot;core&quot;, but some reverse engineer script is still not using that possibility.&lt;br/&gt;
Could you at least point where this can fixed?&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13436">DDC-1648</key>
            <summary>Primary Keys as Foreign Keys - still not working in  Reverse Engineering in 2.1.6</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="rivaros">ross neacoders</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Feb 2012 06:36:14 +0000</created>
                <updated>Wed, 14 Mar 2012 20:40:35 +0000</updated>
                    <resolved>Wed, 14 Mar 2012 20:40:35 +0000</resolved>
                            <version>2.1.6</version>
                                <fixVersion>2.1.7</fixVersion>
                <fixVersion>2.2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17408" author="beberlei" created="Sun, 12 Feb 2012 09:39:18 +0000"  >&lt;p&gt;In lib/Doctrine/ORM/Mapping/DatabaseDriver.php&lt;/p&gt;</comment>
                    <comment id="17409" author="rivaros" created="Sun, 12 Feb 2012 14:43:51 +0000"  >&lt;p&gt;Thank you Benjamin,&lt;/p&gt;

&lt;p&gt;Actually started tracking this error from /lib/Doctrine/ORM/Mapping/ClasMetadataInfo.php and step-bystep it goes to&lt;br/&gt;
/lib/Doctrine/ORM/Mapping/Driver/DatabaseDriver.php&lt;/p&gt;

&lt;p&gt;Actually it calls ClasMetadataInfo::mapMayToOne instead of mapOneToOne in such situations. &lt;br/&gt;
Will investigate further. Pff... DatabaseDriver.php looks a hard class. &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="17410" author="rivaros" created="Sun, 12 Feb 2012 20:02:28 +0000"  >&lt;p&gt;I am almost done with it - need a little more help from you:&lt;/p&gt;

&lt;p&gt;So I fixed the DatabaseDriver so it correctly calls mapOneToOne&lt;br/&gt;
and passes association_mapping to 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;    /**
     * Adds a one-to-one mapping.
     *
     * @param array $mapping The mapping.
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function mapOneToOne(array $mapping)
    {
        $mapping[&apos;type&apos;] = self::ONE_TO_ONE;
        $mapping = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_validateAndCompleteOneToOneMapping($mapping);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_storeAssociationMapping($mapping);
print_r($assocMapping); &amp;lt;--added &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; to see what structure we have on output
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;this gives the following structure&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;Array
(
    [fieldName] =&amp;gt; someguid                      &amp;lt;--- my primary key field, which is also foreign key
    [targetEntity] =&amp;gt; Additionalinfo               &amp;lt;--- target table
    [id] =&amp;gt; 1                                                      &amp;lt;--- indicates that &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; mapping is also id (primary key)
    [joinColumns] =&amp;gt; Array
        (
            [0] =&amp;gt; Array
                (
                    [name] =&amp;gt; Someguid                                                     &amp;lt;--- join columns
                    [referencedColumnName] =&amp;gt; UniqueID                    
                )

        )

    [type] =&amp;gt; 1  &amp;lt;-- indicates ONE-TO-ONE assoc mapping
    [mappedBy] =&amp;gt; 
    [inversedBy] =&amp;gt; 
    [isOwningSide] =&amp;gt; 1
    [sourceEntity] =&amp;gt; Sampledata
    [fetch] =&amp;gt; 2
..... (i omit other data as not important)
)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now the problem: in my entity I got the following&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;var&lt;/span&gt; Additionalinfo
     *
     * @ORM\OneToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Additionalinfo&quot;&lt;/span&gt;)
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;Someguid&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;UniqueID&quot;&lt;/span&gt;)
     * })
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $someguid;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So it correctly created a One-To-One mapping, but it did not preserve @Id attribute.&lt;/p&gt;

&lt;p&gt;I guess this is because field_associations and mapping_associations are processed in separate way,&lt;br/&gt;
and in mapping_association it ignores the $mapping&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;id&amp;quot;&amp;#93;&lt;/span&gt; setting.&lt;/p&gt;

&lt;p&gt;Do you know what code is managing creating the &amp;lt;id ....&amp;gt; / @Id  staff - it is common for annotation/yaml/xml, e.x. when i generated xml for entity, it also does not contain &amp;lt;id &amp;gt; tag.&lt;/p&gt;

</comment>
                    <comment id="17411" author="rivaros" created="Sun, 12 Feb 2012 21:47:50 +0000"  >&lt;p&gt;Update: fixed the last problem in Doctrine/ORM/Tools/EntityGenerator.php&lt;/p&gt;

&lt;p&gt;Still has to be fixed in YAML/XML exporters - not very familiar with the syntax.&lt;/p&gt;</comment>
                    <comment id="17507" author="beberlei" created="Sat, 3 Mar 2012 21:00:50 +0000"  >&lt;p&gt;This PR fixes the problem &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/280&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/280&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17579" author="beberlei" created="Wed, 14 Mar 2012 20:40:35 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1629] short namespace in targetEntity dont work</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1629</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;in 2.1.x this work&lt;/p&gt;

&lt;p&gt;  /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ManyToOne(targetEntity=&quot;\Db:Cliente&quot;, cascade=
{&quot;ALL&quot;})&lt;br/&gt;
   * @JoinColumn(name=&quot;cliente&quot;, referencedColumnName=&quot;telefono&quot;, nullable=false)&lt;br/&gt;
   * @var Db\modelo\Cliente&lt;br/&gt;
   */&lt;br/&gt;
&lt;br/&gt;
in 2.2 crash!&lt;br/&gt;
&lt;br/&gt;
PHP Fatal error:  Uncaught exception &apos;Doctrine\\ORM\\Mapping&lt;br class=&quot;atl-forced-newline&quot; /&gt;MappingException&apos; with message &apos;The target-entity Db:Cliente cannot be found in &apos;Lanzadora\\modelo&lt;br class=&quot;atl-forced-newline&quot; /&gt;Servicios#cliente&apos;.&apos; ....&lt;br/&gt;
&lt;br/&gt;
to use 2.2,  i need update all Entities to this:&lt;br/&gt;
&lt;br/&gt;
  /**&lt;br/&gt;
   * @ManyToOne(targetEntity=&quot;\Db\modelo\Cliente&quot;, cascade={&quot;ALL&quot;}
&lt;p&gt;)&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;@JoinColumn(name=&quot;cliente&quot;, referencedColumnName=&quot;telefono&quot;, nullable=false)&lt;/li&gt;
	&lt;li&gt;@var Db\modelo\Cliente&lt;br/&gt;
   */&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;why it change?, is bug or  planned?&lt;/p&gt;

&lt;p&gt;see &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1585&quot; title=&quot;Doctrine2 doesn&amp;#39;t check for the correct entity type on @ManyToOne relations&quot;&gt;&lt;del&gt;DDC-1585&lt;/del&gt;&lt;/a&gt; !!!&lt;/p&gt;</description>
                <environment></environment>
            <key id="13404">DDC-1629</key>
            <summary>short namespace in targetEntity dont work</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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mazhack">Juan Enrique Escobar Robles</reporter>
                        <labels>
                    </labels>
                <created>Tue, 31 Jan 2012 16:05:41 +0000</created>
                <updated>Sat, 3 Mar 2012 21:40:30 +0000</updated>
                    <resolved>Sat, 3 Mar 2012 21:40:30 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.2.2</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17511" author="beberlei" created="Sat, 3 Mar 2012 21:40:30 +0000"  >&lt;p&gt;Iti shouldnt even work in 2.1, this is invalid.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1534] ManyToMany Bidirectional Relationships require a defined &quot;joinTable&quot;</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1534</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In the Mapping when defining a ManyToMany Bi-Directional Association the inversedBy is required on the owning side. Without a joinTable defined, the inversedBy attribute is never read. The joinTable attribute should not be required if using the Mapping Defaults.&lt;/p&gt;

&lt;p&gt;A quick glance at the code showed this in Annotations/XML/YML mappings&lt;/p&gt;</description>
                <environment></environment>
            <key id="13259">DDC-1534</key>
            <summary>ManyToMany Bidirectional Relationships require a defined &quot;joinTable&quot;</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jldell">Jonathan Dell</reporter>
                        <labels>
                    </labels>
                <created>Tue, 13 Dec 2011 18:13:11 +0000</created>
                <updated>Sat, 7 Apr 2012 08:44:27 +0000</updated>
                    <resolved>Sat, 7 Apr 2012 08:44:27 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.2.2</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17017" author="beberlei" created="Sat, 17 Dec 2011 22:16:06 +0000"  >&lt;p&gt;I don&apos;t get it, can you point me to some lines?&lt;/p&gt;</comment>
                    <comment id="17830" author="beberlei" created="Sat, 7 Apr 2012 08:44:27 +0000"  >&lt;p&gt;Found, fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>