<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed May 22 16:10:12 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.3%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.3%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="131" total="131"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DDC-1800] Paginator results is wrong if your query use order by clause</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1800</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;NOTE: I didn&apos;t try this on other database, I&apos;m using Oracle.&lt;/p&gt;

&lt;p&gt;if my original fetchJoin query use an order by clause, the results is not keeping the provided order by clause and re-order them by id.&lt;/p&gt;

&lt;p&gt;here is my generated query to get the distinct records that get generated:&lt;/p&gt;

&lt;p&gt;SELECT distinct ID0&lt;br/&gt;
FROM &lt;br/&gt;
(&lt;br/&gt;
  SELECT f0_.id AS ID0, f0_.deal_type_id AS DEAL_TYPE_ID1, f0_.title AS TITLE2, f0_.deal_date AS DEAL_DATE3, f0_.amount AS AMOUNT4, &lt;br/&gt;
    f0_.abstract AS ABSTRACT5, f0_.created_date AS CREATED_DATE6, f0_.last_updated_date AS LAST_UPDATED_DATE7, &lt;br/&gt;
    f0_.object_status_id AS OBJECT_STATUS_ID8, f0_.published_date AS PUBLISHED_DATE9, f0_.publishing_status_id AS PUBLISHING_STATUS_ID10, &lt;br/&gt;
    f1_.id AS ID11, f1_.role_id AS ROLE_ID12, f1_.role_type_id AS ROLE_TYPE_ID13, f2_.id AS ID14, f3_.id AS ID15, f4_.id AS ID16, f5_.id AS ID17, &lt;br/&gt;
    c6_.id AS ID18, d7_.id AS ID19 &lt;br/&gt;
  FROM fo_deal f0_ &lt;br/&gt;
  INNER JOIN fo_deal_role f1_ ON f0_.id = f1_.deal_id &lt;br/&gt;
  INNER JOIN fo_people f2_ ON f1_.people_id = f2_.id &lt;br/&gt;
  INNER JOIN fo_property_deal f3_ ON f0_.id = f3_.deal_id &lt;br/&gt;
  INNER JOIN fo_property f4_ ON f3_.property_id = f4_.id &lt;br/&gt;
  LEFT JOIN fo_property_asset f5_ ON f4_.id = f5_.property_id &lt;br/&gt;
  LEFT JOIN co_asset c6_ ON f5_.asset_id = c6_.id &lt;br/&gt;
  LEFT JOIN ds_record d7_ ON c6_.ds_id = d7_.id &lt;br/&gt;
  WHERE f1_.people_id = 2 &lt;br/&gt;
  AND f0_.object_status_id &amp;lt;&amp;gt; 3 &lt;br/&gt;
  AND f0_.publishing_status_id = 2 &lt;br/&gt;
  ORDER BY f0_.deal_date DESC, f0_.published_date DESC&lt;br/&gt;
)&lt;/p&gt;

&lt;p&gt;running this query I get the id 30, 44 when the inner query return 44, 30&lt;/p&gt;

&lt;p&gt;here is the query that should get generated to take care of the order by clause:&lt;br/&gt;
SELECT distinct ID0, rownum+&lt;br/&gt;
FROM &lt;br/&gt;
(&lt;br/&gt;
  SELECT f0_.id AS ID0, f0_.deal_type_id AS DEAL_TYPE_ID1, f0_.title AS TITLE2, f0_.deal_date AS DEAL_DATE3, f0_.amount AS AMOUNT4, &lt;br/&gt;
    f0_.abstract AS ABSTRACT5, f0_.created_date AS CREATED_DATE6, f0_.last_updated_date AS LAST_UPDATED_DATE7, &lt;br/&gt;
    f0_.object_status_id AS OBJECT_STATUS_ID8, f0_.published_date AS PUBLISHED_DATE9, f0_.publishing_status_id AS PUBLISHING_STATUS_ID10, &lt;br/&gt;
    f1_.id AS ID11, f1_.role_id AS ROLE_ID12, f1_.role_type_id AS ROLE_TYPE_ID13, f2_.id AS ID14, f3_.id AS ID15, f4_.id AS ID16, f5_.id AS ID17, &lt;br/&gt;
    c6_.id AS ID18, d7_.id AS ID19 &lt;br/&gt;
  FROM fo_deal f0_ &lt;br/&gt;
  INNER JOIN fo_deal_role f1_ ON f0_.id = f1_.deal_id &lt;br/&gt;
  INNER JOIN fo_people f2_ ON f1_.people_id = f2_.id &lt;br/&gt;
  INNER JOIN fo_property_deal f3_ ON f0_.id = f3_.deal_id &lt;br/&gt;
  INNER JOIN fo_property f4_ ON f3_.property_id = f4_.id &lt;br/&gt;
  LEFT JOIN fo_property_asset f5_ ON f4_.id = f5_.property_id &lt;br/&gt;
  LEFT JOIN co_asset c6_ ON f5_.asset_id = c6_.id &lt;br/&gt;
  LEFT JOIN ds_record d7_ ON c6_.ds_id = d7_.id &lt;br/&gt;
  WHERE f1_.people_id = 2 &lt;br/&gt;
  AND f0_.object_status_id &amp;lt;&amp;gt; 3 &lt;br/&gt;
  AND f0_.publishing_status_id = 2 &lt;br/&gt;
  ORDER BY f0_.deal_date DESC, f0_.published_date DESC&lt;br/&gt;
) ORDER BY rownum ASC&lt;/p&gt;

&lt;p&gt;To fix this on the Paginator code:&lt;/p&gt;

&lt;p&gt;file: ORM/Tools/Pagination/LimitSubqueryOutputWalker.php&lt;br/&gt;
method: walkSelectStatement&lt;/p&gt;

&lt;p&gt;change: &lt;br/&gt;
$sql = sprintf(&apos;SELECT b.*, rownum as rn FROM (SELECT DISTINCT %s FROM (%s)) b&apos;, // AS _dctrn_result&apos;,&lt;br/&gt;
            implode(&apos;, &apos;, $sqlIdentifier), $sql);&lt;/p&gt;

&lt;p&gt;for:&lt;br/&gt;
$sql = sprintf(&apos;SELECT b.*, rownum as rn FROM (SELECT DISTINCT %s, numrow FROM (%s) ORDER BY numrow ASC) b&apos;, // AS _dctrn_result&apos;,&lt;br/&gt;
            implode(&apos;, &apos;, $sqlIdentifier), $sql);&lt;/p&gt;</description>
                <environment>linux oracle</environment>
            <key id="13664">DDC-1800</key>
            <summary>Paginator results is wrong if your query use order by clause</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="mdrolet">Marc Drolet</reporter>
                        <labels>
                    </labels>
                <created>Fri, 27 Apr 2012 19:52:20 +0000</created>
                <updated>Tue, 9 Apr 2013 20:03:37 +0000</updated>
                    <resolved>Wed, 29 Aug 2012 13:18:33 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.2.4</fixVersion>
                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="17946" author="mdrolet" created="Mon, 14 May 2012 14:30:41 +0000"  >&lt;p&gt;rownum instead of numrow.  sorry.&lt;/p&gt;

&lt;p&gt;$sql = sprintf(&apos;SELECT b.*, rownum as rn FROM (SELECT DISTINCT %s, rownum FROM (%s) ORDER BY rownum ASC) b&apos;,&lt;br/&gt;
            implode(&apos;, &apos;, $sqlIdentifier), $sql);&lt;/p&gt;</comment>
                    <comment id="18228" author="beberlei" created="Sat, 7 Jul 2012 16:20:28 +0000"  >&lt;p&gt;Doctrine 2.2.2 doesnt have the LimitSubqueryoutputWalker and Doctrine 2.3-dev does not have the line in the code. Can you make a more explicit statement of where the change is necessary?&lt;/p&gt;</comment>
                    <comment id="18254" author="mdrolet" created="Mon, 9 Jul 2012 13:44:59 +0000"  >&lt;p&gt;It&apos;s in the Pagination of version 2.2.2.  ORM/Tools/Pagination/LimitSubqueryOutputWalker.php&lt;/p&gt;</comment>
                    <comment id="18260" author="beberlei" created="Mon, 9 Jul 2012 15:15:11 +0000"  >&lt;p&gt;This is the 2.2 branch, &lt;a href=&quot;https://github.com/doctrine/doctrine2/tree/2.2/lib/Doctrine/ORM/Tools/Pagination&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/tree/2.2/lib/Doctrine/ORM/Tools/Pagination&lt;/a&gt; and &lt;a href=&quot;https://github.com/doctrine/doctrine2/tree/2.2.2/lib/Doctrine/ORM/Tools/Pagination&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/tree/2.2.2/lib/Doctrine/ORM/Tools/Pagination&lt;/a&gt; is the 2.2.2 tag.&lt;/p&gt;

&lt;p&gt;no LimitSubqueryOutputWalker.php in there.&lt;/p&gt;</comment>
                    <comment id="18577" author="beberlei" created="Wed, 29 Aug 2012 13:18:33 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                    <comment id="19966" author="rkolbe" created="Tue, 9 Apr 2013 17:25:07 +0000"  >&lt;p&gt;This issue is popping it&apos;s head up again!&lt;/p&gt;

&lt;p&gt;Benjamin, your tests don&apos;t test for the ordering problem unless those tests are happening somewhere else?&lt;/p&gt;

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

&lt;p&gt;I am performing a query as complex as Marc&apos;s and I experience the same exact issue. I have checked out today&apos;s latest master branch as well as the 2.3 tag with no change.&lt;/p&gt;

&lt;p&gt;Please advise.&lt;/p&gt;</comment>
                    <comment id="19968" author="rkolbe" created="Tue, 9 Apr 2013 20:03:37 +0000"  >&lt;p&gt;I have a PR in &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/645&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/645&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1579] MappedSuperClass and inheritance problem with console generate:entities command</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1579</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have two classes.&lt;/p&gt;

&lt;p&gt;One extends from another. I&apos;m using the annotation @MappedSuperclass&lt;br/&gt;
and operates correctly, but when he did the entities generation&lt;br/&gt;
through the command console, doctrine adds the property and the&lt;br/&gt;
methods of the &quot;father&quot; class in the subclass.&lt;/p&gt;

&lt;p&gt;This is a bug of the command console?&lt;/p&gt;

&lt;p&gt;Really you should not copy them if you do not extend them. When you&lt;br/&gt;
run the update of the database schema, i must delete these fields and&lt;br/&gt;
methods added to obtain the desired result.&lt;/p&gt;

&lt;p&gt;What happens?&lt;/p&gt;

&lt;p&gt;Im usign Symfony 2.&lt;/p&gt;

&lt;p&gt;Thanks!!!!&lt;/p&gt;

&lt;p&gt;Code:&lt;/p&gt;

&lt;p&gt;Father class:&lt;/p&gt;

&lt;p&gt;/********************************************************************&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ORM\MappedSuperclass&lt;br/&gt;
 */&lt;br/&gt;
abstract class ConfigBase&lt;br/&gt;
{&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;    /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ORM\Column(name=&quot;enabled&quot;, type=&quot;boolean&quot;)&lt;br/&gt;
     */&lt;br/&gt;
    protected $enabled;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;    /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Set enabled&lt;br/&gt;
     *&lt;/li&gt;
	&lt;li&gt;@param boolean $enabled&lt;br/&gt;
     */&lt;br/&gt;
    public function setEnabled($enabled)
    {
        $this-&amp;gt;enabled = $enabled;
    }&lt;br/&gt;
&lt;br/&gt;
    /**&lt;br/&gt;
     * Get enabled&lt;br/&gt;
     *&lt;br/&gt;
     * @return boolean&lt;br/&gt;
     */&lt;br/&gt;
    public function getEnabled()&lt;br/&gt;
    {
        return $this-&amp;gt;enabled;
    }&lt;br/&gt;
&lt;br/&gt;
}&lt;br/&gt;
&lt;br/&gt;
/********************************************************************&lt;br/&gt;
&lt;br/&gt;
SubClass&lt;br/&gt;
&lt;br/&gt;
/********************************************************************&lt;br/&gt;
&lt;br/&gt;
/**&lt;br/&gt;
 * @ORM\Entity&lt;br/&gt;
 *&lt;br/&gt;
 */&lt;br/&gt;
class UserConfig extends ConfigBase&lt;br/&gt;
{&lt;br/&gt;
    /**&lt;br/&gt;
     * @var integer $id&lt;br/&gt;
     *&lt;br/&gt;
     * @ORM\Column(name=&quot;id&quot;, type=&quot;integer&quot;)&lt;br/&gt;
     * @ORM\Id&lt;br/&gt;
     * @ORM\GeneratedValue(strategy=&quot;AUTO&quot;)&lt;br/&gt;
     */&lt;br/&gt;
    protected $id;&lt;br/&gt;
&lt;br/&gt;
    /**&lt;br/&gt;
     * Get id&lt;br/&gt;
     *&lt;br/&gt;
     * @return integer&lt;br/&gt;
     */&lt;br/&gt;
    public function getId()&lt;br/&gt;
    {
        return $this-&amp;gt;id;
    }&lt;br/&gt;
&lt;br/&gt;
/************************************************/&lt;br/&gt;
/* Auto generated and non desired values */&lt;br/&gt;
/************************************************/&lt;br/&gt;
    /**&lt;br/&gt;
     * @var boolean $enabled&lt;br/&gt;
     */&lt;br/&gt;
    private $enabled;&lt;br/&gt;
&lt;br/&gt;
    /**&lt;br/&gt;
     * Set enabled&lt;br/&gt;
     *&lt;br/&gt;
     * @param boolean $enabled&lt;br/&gt;
     */&lt;br/&gt;
    public function setEnabled($enabled)&lt;br/&gt;
    {        $this-&amp;gt;enabled = $enabled;    }&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;    /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Get enabled&lt;br/&gt;
     *&lt;/li&gt;
	&lt;li&gt;@return boolean&lt;br/&gt;
     */&lt;br/&gt;
    public function getEnabled()
    {
        return $this-&amp;gt;enabled;
    } &lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>Debian 6.0.3  -  Linux 2.6.32-5-amd64&lt;br/&gt;
&lt;br/&gt;
Symfony2 2.0.8 + Doctrine2 2.1.5</environment>
            <key id="13330">DDC-1579</key>
            <summary>MappedSuperClass and inheritance problem with console generate:entities command</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="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="smoya">Sergio Moya</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Jan 2012 10:26:27 +0000</created>
                <updated>Mon, 10 Dec 2012 10:07:12 +0000</updated>
                    <resolved>Mon, 9 Jan 2012 14:07:49 +0000</resolved>
                            <version>2.1.5</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17203" author="beberlei" created="Mon, 9 Jan 2012 14:07:49 +0000"  >&lt;p&gt;It is a known problem that will be fixed in 2.3 hopefully.&lt;/p&gt;</comment>
                    <comment id="18156" author="johan" created="Tue, 3 Jul 2012 18:48:08 +0000"  >&lt;p&gt;I just noticed that this is only an issue if the member has a protected scope in the mapped super class, it works fine for private members.&lt;/p&gt;</comment>
                    <comment id="19115" author="lukxde" created="Mon, 10 Dec 2012 10:07:12 +0000"  >&lt;p&gt;As of Doctrine 2.3.0, Symfony 2.1.3, this behaviour is still reproducable.&lt;br/&gt;
Mr. Ehlers is correct; generation will work correctly when the super class&apos; properties are set to private scope. However, in that case the Proxy Object&apos;s lazy loading can&apos;t set the properties in question.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10002">
                <name>Dependency</name>
                                <outwardlinks description="depends on">
                            <issuelink>
            <issuekey id="13345">DDC-1590</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2080] Entity&apos;s association changes after first call</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2080</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;i am using the latest version of doctrine: 2.3&lt;/p&gt;

&lt;p&gt;when you call a generated association function, the first time everything is fine:&lt;/p&gt;

&lt;p&gt;$authors = $book-&amp;gt;getBookToAuthors();&lt;br/&gt;
//$authors = array(5)&lt;br/&gt;
but the second time instead of returning the array of all associations it returns the last hydrated entity:&lt;/p&gt;

&lt;p&gt;$authors = $book-&amp;gt;getBookToAuthors();&lt;br/&gt;
//$authors = BookToAuthor entity&lt;br/&gt;
that happens even when there is nothing else happening:&lt;/p&gt;

&lt;p&gt;$authors = $book-&amp;gt;getBookToAuthors(); //will work&lt;br/&gt;
$authors = $book-&amp;gt;getBookToAuthors(); //won&apos;t work&lt;br/&gt;
the function of getBookToAuthors() is:&lt;/p&gt;

&lt;p&gt;public function getBookToAuthors()&lt;/p&gt;
{
    return $this-&amp;gt;bookToAuthors;
}
&lt;p&gt;and the mapping is as follows:&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@var BookToAuthor[]&lt;br/&gt;
 *&lt;/li&gt;
	&lt;li&gt;@OneToMany(targetEntity=&quot;BookToAuthor&quot;, mappedBy=&quot;book&quot;, cascade=
{&quot;persist&quot;}
&lt;p&gt;)&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;@JoinColumn(name=&quot;id&quot;, referencedColumnName=&quot;book_id&quot;, onDelete=&quot;cascade&quot;)&lt;br/&gt;
 */&lt;br/&gt;
private $bookToAuthors;&lt;br/&gt;
please advise. i don&apos;t know what to do... &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;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="14130">DDC-2080</key>
            <summary>Entity&apos;s association changes after first call</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="iamkoby">Koby Soto</reporter>
                        <labels>
                    </labels>
                <created>Mon, 15 Oct 2012 14:55:51 +0000</created>
                <updated>Mon, 15 Oct 2012 15:02:55 +0000</updated>
                    <resolved>Mon, 15 Oct 2012 15:02:06 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18838" author="iamkoby" created="Mon, 15 Oct 2012 15:02:06 +0000"  >&lt;p&gt;sorry sorry sorry&lt;br/&gt;
it was a mistake in the association target side.&lt;/p&gt;

&lt;p&gt;the target had One-To-One association instead of Many-To-One&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2003] DateTime conditions in Criteria objects result in errors</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2003</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using DateTime conditions in Criteria objects an error is thrown because of DateTime to string conversion. This is because the `matching` method doesn&apos;t use the same functionality as the `findBy` method.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14000">DDC-2003</key>
            <summary>DateTime conditions in Criteria objects result in errors</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="josiah">Josiah Truasheim</reporter>
                        <labels>
                    </labels>
                <created>Fri, 31 Aug 2012 10:40:44 +0000</created>
                <updated>Mon, 17 Sep 2012 11:35:45 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 11:35:45 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18592" author="josiah" created="Fri, 31 Aug 2012 10:55:22 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/433&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/433&lt;/a&gt; - PR&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2005] [GH-433] DDC-2003 - DateTime conditions in Criteria objects result in errors</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2005</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 Josiah:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14002">DDC-2005</key>
            <summary>[GH-433] DDC-2003 - DateTime conditions in Criteria objects result in errors</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 31 Aug 2012 10:54:57 +0000</created>
                <updated>Mon, 17 Sep 2012 10:53:20 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 10:53:20 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18607" author="beberlei" created="Wed, 5 Sep 2012 17:29:15 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-433&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/433&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/433&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2015] [GH-437] Fixes PersistentCollection::matching() when collection is not initialize...</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2015</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 sroddy:&lt;/p&gt;

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

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

&lt;p&gt;...d and there are NEW entities in the collection.&lt;/p&gt;

&lt;p&gt;If you have a PersistentCollection not already initialized and you add something to it and if you call matching() on it, that method doesn&apos;t return the elements you have just added even if they match the criteria.&lt;/p&gt;

&lt;p&gt;This fixes the behaviour checking for any matching element that is NEW and merging it in the returned ArrayCollection.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14016">DDC-2015</key>
            <summary>[GH-437] Fixes PersistentCollection::matching() when collection is not initialize...</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Sep 2012 01:40:01 +0000</created>
                <updated>Mon, 17 Sep 2012 10:50:39 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 10:50:39 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18619" author="beberlei" created="Fri, 7 Sep 2012 20:18:51 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-437&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/437&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/437&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2014] [GH-436] Comment fixes</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2014</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 Powerhamster:&lt;/p&gt;

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

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

&lt;p&gt;This will update method comments in UnitOfWork and fixes a typo in isCollectionScheduledForDeletion.&lt;br/&gt;
It also add a missing use statement in getQuotedIdentifierColumnNames of ClassMetadateInfo.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14015">DDC-2014</key>
            <summary>[GH-436] Comment fixes</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>Thu, 6 Sep 2012 16:21:12 +0000</created>
                <updated>Mon, 17 Sep 2012 10:47:43 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 10:47:43 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

&lt;p&gt;This patch remove some unused code.&lt;br/&gt;
Sorry, I added this code by mistake, it was part of a old implementation.&lt;/p&gt;

&lt;p&gt;@beberlei please backported it to 2.3&lt;/p&gt;</description>
                <environment></environment>
            <key id="14031">DDC-2026</key>
            <summary>[GH-442] Remove unused code</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>Thu, 13 Sep 2012 00:45:06 +0000</created>
                <updated>Mon, 17 Sep 2012 10:34:29 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 10:34:29 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2027] [GH-443] Allow &apos;nullable&apos; attribute to be used during XML export</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2027</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 cas87:&lt;/p&gt;

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

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

&lt;p&gt;Allows &apos;nullable&apos; attribute to be used during XML export, something which already worked for me in YamlExport. This addition saved me a lot of time during development; one less difference to deal with between the YAML and XML approach.&lt;/p&gt;

&lt;p&gt;Don&apos;t know why this was missing, maybe it&apos;s me who is missing something, so let me know &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/wink.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;</description>
                <environment></environment>
            <key id="14032">DDC-2027</key>
            <summary>[GH-443] Allow &apos;nullable&apos; attribute to be used during XML export</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>Thu, 13 Sep 2012 00:47:46 +0000</created>
                <updated>Mon, 17 Sep 2012 10:32:46 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 10:32:46 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18633" author="beberlei" created="Thu, 13 Sep 2012 03:12:49 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-443&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/443&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/443&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1977] Undefined index in ParameterTypeInferer</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1977</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Trying to bind an empty array as a parameter to a raw SQL query results in an undefined index error on line 59.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Query/ParameterTypeInferer.php#L59&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Query/ParameterTypeInferer.php#L59&lt;/a&gt;&lt;/p&gt;</description>
                <environment>PHP 5.3.6-13ubuntu3.8 with Suhosin-Patch (cli) (built: Jun 13 2012 17:19:54) &lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;package&amp;quot;: &amp;quot;doctrine/common&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;version&amp;quot;: &amp;quot;2.2.2&amp;quot;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;package&amp;quot;: &amp;quot;doctrine/dbal&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;version&amp;quot;: &amp;quot;2.2.x-dev&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;source-reference&amp;quot;: &amp;quot;b961a3fce6bf220f1dca47d7d747b9074bea4730&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;commit-date&amp;quot;: &amp;quot;1341779435&amp;quot;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;package&amp;quot;: &amp;quot;doctrine/doctrine-bundle&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;version&amp;quot;: &amp;quot;dev-master&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;source-reference&amp;quot;: &amp;quot;62134e6a8dd3f330131ee6a970f0cee1d7760c1d&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;commit-date&amp;quot;: &amp;quot;1343203511&amp;quot;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;package&amp;quot;: &amp;quot;doctrine/orm&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;version&amp;quot;: &amp;quot;2.2.x-dev&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;source-reference&amp;quot;: &amp;quot;5d2a3bcb3b467f41ee58575764f3ba84937f76e4&amp;quot;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;commit-date&amp;quot;: &amp;quot;1341676080&amp;quot;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},</environment>
            <key id="13955">DDC-1977</key>
            <summary>Undefined index in ParameterTypeInferer</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="matt-button">Matt Button</reporter>
                        <labels>
                    </labels>
                <created>Fri, 10 Aug 2012 14:06:50 +0000</created>
                <updated>Wed, 29 Aug 2012 12:30:38 +0000</updated>
                    <resolved>Sat, 25 Aug 2012 22:51:49 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.2.4</fixVersion>
                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18484" author="matt-button" created="Fri, 10 Aug 2012 14:14:09 +0000"  >&lt;p&gt;One way to work around this is to specify the type of the array as the third parameter to addParameter&lt;/p&gt;</comment>
                    <comment id="18541" author="fabio.bat.silva" created="Sat, 25 Aug 2012 22:51:49 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/ece6a005bcecc4a9e4a154d9379cfbe141370415&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/ece6a005bcecc4a9e4a154d9379cfbe141370415&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1990] [GH-427] Fix ORMInvalidArgumentException factory methods with return instead of throw</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1990</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 chEbba:&lt;/p&gt;

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

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

&lt;p&gt;Exception factories should not throw exception but just return them&lt;/p&gt;</description>
                <environment></environment>
            <key id="13976">DDC-1990</key>
            <summary>[GH-427] Fix ORMInvalidArgumentException factory methods with return instead of throw</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>Sun, 19 Aug 2012 19:02:09 +0000</created>
                <updated>Wed, 29 Aug 2012 12:29:03 +0000</updated>
                    <resolved>Wed, 29 Aug 2012 12:29:03 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18567" author="beberlei" created="Wed, 29 Aug 2012 11:57:38 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-427&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/427&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/427&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1985] Call to undefined method ProxyException::proxyDirectoryNotWritable</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1985</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I think it&apos;s fairly self explanatory, didn&apos;t supply a patch since I had no idea what text you wanted there &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;


&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;PHP Fatal error:  Call to undefined method Doctrine\ORM\Proxy\ProxyException::proxyDirectoryNotWritable() in .../orm/lib/Doctrine/ORM/Proxy/ProxyFactory.php on line 193&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</description>
                <environment></environment>
            <key id="13968">DDC-1985</key>
            <summary>Call to undefined method ProxyException::proxyDirectoryNotWritable</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="dynom">Mark van der Velden</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Aug 2012 15:19:55 +0000</created>
                <updated>Fri, 17 Aug 2012 04:51:01 +0000</updated>
                    <resolved>Fri, 17 Aug 2012 04:51:01 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18521" author="guilhermeblanco" created="Fri, 17 Aug 2012 04:51:01 +0000"  >&lt;p&gt;This issue is already fixed in master&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1843] CLONE -Join columns can&apos;t be quoted</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1843</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Join columns can&apos;t be quoted like columns using name=&quot;`quoted`&quot;. Using annotation driver.&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;
/**
 * @ORM\Table(
 *      name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`category`&quot;&lt;/span&gt;,
 *      indexes={
 *          @ORM\Index(
 *              name=&lt;span class=&quot;code-quote&quot;&gt;&quot;fk_category_parentId&quot;&lt;/span&gt;,
 *              columns={&lt;span class=&quot;code-quote&quot;&gt;&quot;parentId&quot;&lt;/span&gt;}
 *          )
 *      },
 *      uniqueConstraints={
 *          @ORM\UniqueConstraint(
 *              name=&lt;span class=&quot;code-quote&quot;&gt;&quot;uq_category_nameParentId&quot;&lt;/span&gt;,
 *              columns={&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;parentId&quot;&lt;/span&gt;}
 *          )
 *      }
 * )
 */
class Category
{
    /**
     * @ORM\Id
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;smallint&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`id`&quot;&lt;/span&gt;)
     * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /**
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;smallint&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`parentId`&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $parentId;

    /**
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=50, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`name`&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $name;

    /**
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Category&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;categories&quot;&lt;/span&gt;)
     * @ORM\JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;parentId&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;, onUpdate=&lt;span class=&quot;code-quote&quot;&gt;&quot;NO ACTION&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $category;
}

... 


&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function load(ObjectManager $manager)
    {
        $parent = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Category();
        $parent-&amp;gt;setName(&apos;parent&apos;);
        $manager-&amp;gt;persist($parent);
        $manager-&amp;gt;flush();

        $child = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Category();
        $child-&amp;gt;setName(&apos;parent&apos;);
        $child-&amp;gt;setParentId($parent-&amp;gt;getId());
        $child-&amp;gt;setCategory($parent);

        $manager-&amp;gt;persist($child);
        $manager-&amp;gt;flush();
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Result: Invalid parameter number: number of bound variables does not match number of tokens&lt;/p&gt;</description>
                <environment></environment>
            <key id="13737">DDC-1843</key>
            <summary>CLONE -Join columns can&apos;t be quoted</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="easen">Marc Easen</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 May 2012 12:46:37 +0000</created>
                <updated>Wed, 15 Aug 2012 00:17:24 +0000</updated>
                    <resolved>Wed, 15 Aug 2012 00:17:24 +0000</resolved>
                            <version>2.1.6</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18024" author="fabio.bat.silva" created="Mon, 28 May 2012 17:29:33 +0000"  >&lt;p&gt;code format&lt;/p&gt;</comment>
                    <comment id="18139" author="fabio.bat.silva" created="Mon, 25 Jun 2012 13:04:40 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/cb72219b118c158c9b5344c4b81ff2b1a9149ab0&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/cb72219b118c158c9b5344c4b81ff2b1a9149ab0&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18187" author="easen" created="Thu, 5 Jul 2012 15:14:37 +0000"  >&lt;p&gt;When inserting into an entity which has quoted columns and unquoted JoinColumn the generated SQL includes the correct number of parameters but the incorrect columns names and bind parameters:&lt;/p&gt;

&lt;p&gt;INSERT INTO `table` (`c1`, c1) VALUES (?, ?)&lt;/p&gt;

</comment>
                    <comment id="18188" author="easen" created="Thu, 5 Jul 2012 15:18:40 +0000"  >&lt;p&gt;See &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/390&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/390&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18189" author="fabio.bat.silva" created="Thu, 5 Jul 2012 15:19:37 +0000"  >&lt;p&gt;Hi Marc,&lt;/p&gt;

&lt;p&gt;Could you attach your entities or a test case please ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="18194" author="fabio.bat.silva" created="Thu, 5 Jul 2012 18:40:28 +0000"  >&lt;p&gt;Marc, why do you need to quoted columns and unquoted join column ?&lt;/p&gt;

&lt;p&gt;For sure duplicated columns is a problem, but your use case does not make sense for me..&lt;/p&gt;</comment>
                    <comment id="18516" author="fabio.bat.silva" created="Wed, 15 Aug 2012 00:17:24 +0000"  >&lt;p&gt;More details about the related problem : &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/390&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/390&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11194" name="quoted_joins_fix.diff" size="1510" author="easen" created="Mon, 28 May 2012 12:58:06 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1964] [GH-417] Remove unused use statement</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1964</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 jonathaningram:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13904">DDC-1964</key>
            <summary>[GH-417] Remove unused use statement</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>Thu, 2 Aug 2012 05:33:28 +0000</created>
                <updated>Tue, 14 Aug 2012 21:53:35 +0000</updated>
                    <resolved>Tue, 14 Aug 2012 21:53:35 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18423" author="beberlei" created="Thu, 2 Aug 2012 06:39:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-417&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/417&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/417&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1982] [GH-424] Create the setCustomHydrationMode function</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1982</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 Mezzle:&lt;/p&gt;

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

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

&lt;p&gt;This allows multiple hydrators to be set at once, and also allows for&lt;br/&gt;
the customHydrationMode options to be set via DoctrineORMModule&lt;/p&gt;</description>
                <environment></environment>
            <key id="13965">DDC-1982</key>
            <summary>[GH-424] Create the setCustomHydrationMode function</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="asm89">Alexander</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 Aug 2012 10:13:15 +0000</created>
                <updated>Tue, 14 Aug 2012 20:49:23 +0000</updated>
                    <resolved>Tue, 14 Aug 2012 20:49:23 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18505" author="beberlei" created="Tue, 14 Aug 2012 20:34:31 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-424&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/424&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/424&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18506" author="asm89" created="Tue, 14 Aug 2012 20:49:23 +0000"  >&lt;p&gt;PR was squashed and merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-451] Add GUID/UUID Id Generator</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-451</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;We should add an IdGenerator that facilitates the DB Vendors UUID()/GUID() generation facilities.&lt;/p&gt;

&lt;p&gt;Although these IdGenerators take more space compared to other Generators there are use-cases which can be only solved with this kind of Id Generator.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11101">DDC-451</key>
            <summary>Add GUID/UUID Id Generator</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 20 Mar 2010 14:04:48 +0000</created>
                <updated>Mon, 13 Aug 2012 20:27:11 +0000</updated>
                    <resolved>Mon, 12 Mar 2012 12:04:35 +0000</resolved>
                            <version>2.0-ALPHA4</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>3</votes>
                        <watches>6</watches>
                        <comments>
                    <comment id="12411" author="guilhermeblanco" created="Sat, 20 Mar 2010 16:52:46 +0000"  >&lt;p&gt;Here is a basic GUID generator.&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;class Guid
{
    /**
     * Generate a GUID
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; string
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; function generate()
    {
        $cpuname     = getenv(&apos;COMPUTERNAME&apos;);
        $address     = isset($_SERVER[&apos;SERVER_ADDR&apos;]) ? @$_SERVER[&apos;SERVER_ADDR&apos;] : uniqid(hash(&lt;span class=&quot;code-quote&quot;&gt;&quot;md5&quot;&lt;/span&gt;, time()), &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;) . time();
        $address     = (trim($cpuname) == &apos;&apos; ? crypt(uniqid(rand(), &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)) : $cpuname) . &apos;/&apos; . $address;
        $milisecs        = microtime();
        $randomLong  = (rand(0, 1))? &apos;-&apos;:&apos;&apos;;
        $randomLong .= rand(1000, 9999).rand(1000, 9999).rand(1000, 9999).rand(100, 999).rand(100, 999);
        
        $string = $address . &apos;:&apos; . $milisecs . &apos;:&apos; . $randomLong;
        $hashString = strtoupper(md5($string));
        
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; substr($hashString, 0, 8).&apos;-&apos;.substr($hashString, 8, 4).&apos;-&apos;.substr($hashString, 12, 4).&apos;-&apos;.substr($hashString, 16, 4).&apos;-&apos;.substr($hashString, 20);
    }
    
    
    /**
     * Verifies &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; a string is a valid Guid generated acording to &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; class
     *
     * @param string $guid Guid to be analyzed
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; function match($guid)
    {
        
        $match = preg_match(&lt;span class=&quot;code-quote&quot;&gt;&quot;/^([A-F0-9]{8}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{4}-[A-F0-9]{12})$/&quot;&lt;/span&gt;, $guid);
        
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $match;
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="12921" author="andyajadeh" created="Wed, 12 May 2010 05:34:25 +0000"  >&lt;p&gt;I agree, there are some application features that can only be done with GUID.&lt;/p&gt;</comment>
                    <comment id="13690" author="steffenvogel" created="Sun, 25 Jul 2010 08:32:38 +0000"  >&lt;p&gt;Oh, thats a quite simple implementation of a UUID/GUID generator.&lt;/p&gt;

&lt;p&gt;I would prefer something like this:&lt;br/&gt;
&lt;a href=&quot;http://github.com/volkszaehler/volkszaehler.org/blob/master/backend/lib/Util/UUID.php&quot; class=&quot;external-link&quot;&gt;http://github.com/volkszaehler/volkszaehler.org/blob/master/backend/lib/Util/UUID.php&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Its a RFC2144 compatible implementation for UUIDs&lt;/p&gt;</comment>
                    <comment id="16223" author="gedrox" created="Wed, 27 Jul 2011 13:46:17 +0000"  >&lt;p&gt;Here is complete code how to do this - &lt;a href=&quot;http://ranskills.wordpress.com/2011/05/26/how-to-add-a-custom-id-generation-strategy-to-doctrine-2-0/&quot; class=&quot;external-link&quot;&gt;http://ranskills.wordpress.com/2011/05/26/how-to-add-a-custom-id-generation-strategy-to-doctrine-2-0/&lt;/a&gt;.&lt;/p&gt;</comment>
                    <comment id="16912" author="maartendekeizer" created="Wed, 23 Nov 2011 22:04:39 +0000"  >&lt;p&gt;A couple of months ago I created 2 pull requests for this feature (&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/127&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/127&lt;/a&gt; and &lt;a href=&quot;https://github.com/doctrine/dbal/pull/58&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/58&lt;/a&gt;). It would be nice if the feature is in the next Doctrine release.&lt;/p&gt;</comment>
                    <comment id="17557" author="beberlei" created="Mon, 12 Mar 2012 12:04:35 +0000"  >&lt;p&gt;Implemented&lt;/p&gt;</comment>
                    <comment id="17558" author="beberlei" created="Mon, 12 Mar 2012 12:06:08 +0000"  >&lt;p&gt;Details: This works with Database provided GUID functionality only for now, the UUID Generator uses the AbstractPlatform#getGuidSqlExpression() function and a SELECT clause to fetch a new guid. A next step might be to add a Platform#supportsGuidGeneration() flag and otherwise fallback to a PHP based generation.&lt;/p&gt;

&lt;p&gt;The Id generator in the ORM is pre insert, which makes this very awesome &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="18473" author="marijn" created="Tue, 7 Aug 2012 12:43:42 +0000"  >&lt;p&gt;There is a &lt;a href=&quot;https://github.com/ramsey/uuid&quot; class=&quot;external-link&quot;&gt;nice implementation&lt;/a&gt; out there with proper UUID generation and a DBAL datatype.&lt;/p&gt;
</comment>
                    <comment id="18474" author="beberlei" created="Tue, 7 Aug 2012 13:28:06 +0000"  >&lt;p&gt;starting with 2.3 there are custom id generators and you can do whatever you want. There is also a UUID/GUID type in 2.3 that is using the appropriate vendor database functions to generate those values.&lt;/p&gt;</comment>
                    <comment id="18487" author="holtkamp" created="Mon, 13 Aug 2012 02:54:34 +0000"  >&lt;blockquote&gt;
&lt;p&gt; There is also a UUID/GUID type in 2.3 that is using the appropriate vendor database functions to generate those values.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;So how would one be able to use this UUID/GUID? Would it be required for the column to be tagged as a @Id and @GeneratedValue with GUID strategy? I would like to have a random string generated which does not act as @Id within Doctrine... The text quoted suggests that it should work out of the box by setting the column type to &apos;guid&apos;, which it does not (2.3.0-RC1).&lt;/p&gt;

&lt;p&gt;Simply setting the column type to &apos;guid&apos; does not trigger the database to generate an ID when INSERTing a row...&lt;/p&gt;</comment>
                    <comment id="18488" author="ocramius" created="Mon, 13 Aug 2012 08:12:29 +0000"  >&lt;p&gt;I&apos;m not sure about PHP&apos;s case sensitivity, but as of &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/00a5f185444fb5d7c84e445d9ea6d6a68e087f98/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php#L310&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/00a5f185444fb5d7c84e445d9ea6d6a68e087f98/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php#L310&lt;/a&gt; I think you should try with &quot;UUID&quot; (uppercase)&lt;/p&gt;</comment>
                    <comment id="18495" author="holtkamp" created="Mon, 13 Aug 2012 12:03:31 +0000"  >&lt;p&gt;Marco, it is indeed &apos;UUID&apos;, but this seems not to kick in when there is no @Id annotation used. I want to use it to come up with an identifier for an Order. It is not a primary key at database level or something like that. I was just wondering whether this new functionality can be used like that. I get the feeling it is not intended to be used like this: &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;/**
 * Unique Order identifier that acts as reference for an Order even when multiple databases are involved
 * 
 * @var string
 * @ORM\Column(name=&quot;order_identifier&quot;, type=&quot;string&quot;, unique=true)
 * @ORM\GeneratedValue(strategy=&quot;UUID&quot;)
 */
protected $_orderIdentifier;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="18498" author="beberlei" created="Mon, 13 Aug 2012 13:53:27 +0000"  >&lt;p&gt;Well it is an ID generator. So it has to be with @Id.&lt;/p&gt;</comment>
                    <comment id="18499" author="holtkamp" created="Mon, 13 Aug 2012 15:50:40 +0000"  >&lt;p&gt;Well, yes, that was my question and that is now answered, thanks. &lt;/p&gt;

&lt;p&gt;It would be nice though to have UUID generation functionality available for non-database specific IDs as well. For instance for:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;user account activation tokens&lt;/li&gt;
	&lt;li&gt;payment references&lt;/li&gt;
	&lt;li&gt;invoice reference, etc.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This is now something that has to be implemented at the applciation level. But since we have these generators available, why not re-use it. By adding a @Id annotation, it becomes part of a composite key, which is not the purpose. Maybe I&apos;ll dive into the code and see whether this is possible.&lt;/p&gt;</comment>
                    <comment id="18500" author="beberlei" created="Mon, 13 Aug 2012 18:03:51 +0000"  >&lt;p&gt;it is available, just take a look at the code.&lt;/p&gt;</comment>
                    <comment id="18501" author="holtkamp" created="Mon, 13 Aug 2012 19:08:40 +0000"  >&lt;blockquote&gt;&lt;p&gt;Well it is an ID generator. So it has to be with @Id.&lt;/p&gt;&lt;/blockquote&gt;
&lt;blockquote&gt;&lt;p&gt;it is available, just take a look at the code.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Mmm, now I am confused, I think we are mis-communicating. &lt;/p&gt;

&lt;p&gt;Maybe using less text and more descriptive examples:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;is it possible to use Database GUID functionality
	&lt;ul&gt;
		&lt;li&gt;without using the @Id annotations, to generate values for Entity properties that are not a primary key?&lt;/li&gt;
		&lt;li&gt;note that this Entity unique reference would exist next to a property that does have the @Id annotation&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Attempt 1:&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;/**
 * The Order ID used at database level, which does NOT have any meaning within our domain, solely at database level
 *
 * @var integer
 * @ORM\Column(name=&quot;id&quot;, type=&quot;integer&quot;)
 * @ORM\Id
 * @ORM\GeneratedValue(strategy=&quot;IDENTITY&quot;)
 * @ORM\SequenceGenerator(sequenceName=&quot;orders_id_seq&quot;)
 */
protected $_id;

/**
 * The Order reference used at domain level, which DOES have meaning in our domain
 * Typically used to report in emails, printed on Invoices, etc
 *
 * @var string
 * @ORM\Column(name=&quot;order_identifier&quot;, type=&quot;guid&quot;)
 */
protected $_orderIdentifier;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;



&lt;p&gt;Attempt 2:&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;/**
 * The Order ID used at database level, which does NOT have meaning within our domain, solely at database level
 *
 * @var integer
 * @ORM\Column(name=&quot;id&quot;, type=&quot;integer&quot;)
 * @ORM\Id
 * @ORM\GeneratedValue(strategy=&quot;IDENTITY&quot;)
 * @ORM\SequenceGenerator(sequenceName=&quot;orders_id_seq&quot;)
 */
protected $_id;

/**
 * The Order reference used at domain level, which DOES have meaning in our domain
 * Typically used to report in emails, printed on Invoices, etc
 *
 * @var string
 * @ORM\Column(name=&quot;order_identifier&quot;, type=&quot;string&quot;, unique=true)
 * @ORM\GeneratedValue(strategy=&quot;UUID&quot;)
 */
protected $_orderIdentifier;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Based on Benjamin&apos;s first answer I guess that this is not possible. Point is, the second answer indicates that it is possible &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/wink.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;. What is it?&lt;/p&gt;

&lt;p&gt;Also note that in Attempt 2, the @GeneratedValue annotation on the second property interferes with the ID generation of the Entity defined at the first property. This is probably to realize composite keys, but can result in unexpected behavior since it replaces the way the primary key is generated?&lt;/p&gt;
</comment>
                    <comment id="18502" author="beberlei" created="Mon, 13 Aug 2012 20:27:11 +0000"  >&lt;p&gt;Well @GeneratedValue Only works with @Id as I said. But there are low level APIs that you can look up in the UuidGenerator Strategy to use for something like this.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1473] GH-181: make merge copy non persisted properties too</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1473</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized&lt;/p&gt;

&lt;p&gt;The behavior of merging should be to return a managed object with &lt;b&gt;exactly&lt;/b&gt; the same values than the detached one.&lt;/p&gt;

&lt;p&gt;The problem was that it only copies persistable properties.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13152">DDC-1473</key>
            <summary>GH-181: make merge copy non persisted properties too</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>Sun, 6 Nov 2011 16:42:37 +0000</created>
                <updated>Mon, 6 Aug 2012 23:44:30 +0000</updated>
                    <resolved>Fri, 4 May 2012 18:06:57 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18470" author="beberlei" created="Mon, 6 Aug 2012 23:26:10 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-181&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/181&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/181&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18471" author="beberlei" created="Mon, 6 Aug 2012 23:44:30 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-181&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/181&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/181&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1962] [GH-416] [DDC-1961] Fixed parameter type support in Parameter</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1962</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 Majkl578:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13902">DDC-1962</key>
            <summary>[GH-416] [DDC-1961] Fixed parameter type support in Parameter</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>Tue, 31 Jul 2012 14:32:28 +0000</created>
                <updated>Tue, 31 Jul 2012 20:45:06 +0000</updated>
                    <resolved>Tue, 31 Jul 2012 20:45:06 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18421" author="beberlei" created="Tue, 31 Jul 2012 14:34:29 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-416&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/416&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/416&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1961] BC Break: Explicit parameter type definitions are discarded when using AbstractQuery::setParameter</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1961</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In 2.2.x it was possible to explicitly specify a type of a parameter in query. In code below, I used a Type::DATE to explicitly say that it should be converted to date type rather than datetime. In 2.3-RC1, it is completely ignored.&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-comment&quot;&gt;// $query &lt;span class=&quot;code-keyword&quot;&gt;instanceof&lt;/span&gt; AbstractQuery
&lt;/span&gt;$query-&amp;gt;setParameter(&apos;day&apos;, $date, Type::DATE)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Pull request: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/416&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/416&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13901">DDC-1961</key>
            <summary>BC Break: Explicit parameter type definitions are discarded when using AbstractQuery::setParameter</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="majkl578">Michael Moravec</reporter>
                        <labels>
                    </labels>
                <created>Tue, 31 Jul 2012 14:28:16 +0000</created>
                <updated>Tue, 31 Jul 2012 20:44:33 +0000</updated>
                    <resolved>Tue, 31 Jul 2012 20:44:33 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18422" author="beberlei" created="Tue, 31 Jul 2012 20:44:33 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1718] types generated by Doctrine\ORM\Tools\EntityGenerator (in docblock) are sometimes wrong</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1718</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;&quot;@return smallint&quot; instead of &quot;@return integer&quot;... same for date... etc...&lt;/p&gt;

&lt;p&gt;BTW it could be really great to have issues handled by github... (no need to create another account)&lt;/p&gt;</description>
                <environment></environment>
            <key id="13545">DDC-1718</key>
            <summary>types generated by Doctrine\ORM\Tools\EntityGenerator (in docblock) are sometimes wrong</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="brikou">Brikou Carr&#233;</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Mar 2012 15:33:19 +0000</created>
                <updated>Sun, 29 Jul 2012 14:45:22 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 14:45:22 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18411" author="fabio.bat.silva" created="Sun, 29 Jul 2012 14:45:22 +0000"  >
&lt;p&gt;Fixed by :&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/4ef552e07a98f277c459c6afbf41a7b0958752da&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/4ef552e07a98f277c459c6afbf41a7b0958752da&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1925] Bug in UnitOfWork and ManyToMany relations</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1925</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Lets say, I have entity Forum with ManyToMany relations with User.&lt;br/&gt;
I need to validate user changes and I use code like&lt;/p&gt;

&lt;p&gt;$uow = $this-&amp;gt;getDoctrine()&lt;del&gt;&amp;gt;getEntityManager()&lt;/del&gt;&amp;gt;getUnitOfWork();&lt;br/&gt;
$uow-&amp;gt;computeChangeSets();&lt;br/&gt;
$changeSet = $uow-&amp;gt;getEntityChangeSet($forum);&lt;br/&gt;
if (.... bla-bla-bla....) &lt;/p&gt;
{
    $em = $this-&amp;gt;getDoctrine()-&amp;gt;getEntityManager();
    $em-&amp;gt;persist($forum);
    $em-&amp;gt;flush();
}

&lt;p&gt;Unfortunately, whenever I try to change manyToMany relations - I got error&lt;br/&gt;
 SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;23000&amp;#93;&lt;/span&gt;: Integrity constraint violation: 1062 Duplicate entry &apos;4-4&apos; for key &apos;PRIMARY&apos;&lt;/p&gt;

&lt;p&gt;If I comment uow code - everything works just great.&lt;/p&gt;

&lt;p&gt;It looks like bug in UnitOfWork implementation.&lt;/p&gt;

&lt;p&gt;Let me know if you need more details from me.&lt;/p&gt;</description>
                <environment>symfony2</environment>
            <key id="13852">DDC-1925</key>
            <summary>Bug in UnitOfWork and ManyToMany relations</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="zhil">Andrew</reporter>
                        <labels>
                    </labels>
                <created>Sat, 14 Jul 2012 04:44:52 +0000</created>
                <updated>Sun, 29 Jul 2012 10:12:07 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 10:12:07 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.1.8</fixVersion>
                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18309" author="ocramius" created="Mon, 16 Jul 2012 01:04:01 +0000"  >&lt;p&gt;What is the part you commented out? Also, in what context is your code executed?&lt;/p&gt;</comment>
                    <comment id="18311" author="zhil" created="Mon, 16 Jul 2012 09:15:49 +0000"  >&lt;p&gt;I got error when $em-&amp;gt;persist($forum); $em-&amp;gt;flush();  executed.&lt;/p&gt;

&lt;p&gt;I can create github repository with code, which reproduce this error, if you want.&lt;/p&gt;</comment>
                    <comment id="18312" author="ocramius" created="Mon, 16 Jul 2012 09:19:26 +0000"  >&lt;p&gt;Please do&lt;/p&gt;</comment>
                    <comment id="18313" author="zhil" created="Mon, 16 Jul 2012 09:27:01 +0000"  >&lt;p&gt;that would be simple symfony2 application - will it work for you?&lt;/p&gt;</comment>
                    <comment id="18314" author="ocramius" created="Mon, 16 Jul 2012 09:28:57 +0000"  >&lt;p&gt;As long as the code is related to doctrine. Otherwise this issue is quite incomplete &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="18317" author="zhil" created="Mon, 16 Jul 2012 17:30:57 +0000"  >&lt;p&gt;Done, please check &lt;a href=&quot;https://github.com/zhil/testDoctrine&quot; class=&quot;external-link&quot;&gt;https://github.com/zhil/testDoctrine&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In few words, when I add code like &lt;br/&gt;
$uow = $this-&amp;gt;getDoctrine()&lt;del&gt;&amp;gt;getEntityManager()&lt;/del&gt;&amp;gt;getUnitOfWork();&lt;br/&gt;
$uow-&amp;gt;computeChangeSets();&lt;br/&gt;
$changeSet = $uow-&amp;gt;getEntityChangeSet($product);&lt;/p&gt;

&lt;p&gt;before $em-&amp;gt;persist(); $em-&amp;gt;flush();&lt;/p&gt;

&lt;p&gt;I got fake MYSQL error &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Thank in advance for your help &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="18342" author="zhil" created="Thu, 19 Jul 2012 18:36:59 +0000"  >&lt;p&gt;Just wonder - is it bug in doctrine2 or its problems somewhere else? (symfony2/my code/ etc.)&lt;/p&gt;

&lt;p&gt;This is part of the live project - I need to fix it &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="18343" author="ocramius" created="Thu, 19 Jul 2012 18:45:44 +0000"  >&lt;p&gt;I think it is related with the fact that you&apos;re using the `UnitOfWork` manually. You can probably try to fix the problem by moving your code to an event subscriber until this is fixed.&lt;/p&gt;</comment>
                    <comment id="18344" author="zhil" created="Thu, 19 Jul 2012 19:15:09 +0000"  >&lt;p&gt;Well, I used UnitOfWork, because I need to know what was changed during object validation (for example, property status can be changed only in predefined cases etc.).&lt;/p&gt;

&lt;p&gt;Ok, thanks for the suggestion - I will implement some temporary solution for this problem &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="18345" author="ocramius" created="Thu, 19 Jul 2012 19:17:07 +0000"  >&lt;p&gt;I think I spotted where this happens, but I don&apos;t have a clear overview on the situation. Will try to work on this...&lt;/p&gt;</comment>
                    <comment id="18346" author="zhil" created="Thu, 19 Jul 2012 19:36:33 +0000"  >&lt;p&gt;Thanks for the checking this issue.&lt;br/&gt;
I have already patched my application with ugly patch. Just in case solution will take some time and somebody else will need similar patch. I patched entity like&lt;/p&gt;

&lt;p&gt;entity {&lt;br/&gt;
 public $previousStatusBugfix = -1;&lt;br/&gt;
 public function setStatus($status)&lt;/p&gt;
    {
        // check http://www.doctrine-project.org/jira/browse/DDC-1925?focusedCommentId=18344#comment-18344
        // Ticket #651
        $this-&amp;gt;previousStatusBugfix = $this-&amp;gt;status;
        $this-&amp;gt;status = $status;
    }
&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;and validator&lt;/p&gt;

&lt;p&gt;if(($object-&amp;gt;previousStatusBugfix != &lt;del&gt;1) &amp;amp;&amp;amp; ($object&lt;/del&gt;&amp;gt;previousStatusBugfix != $object-&amp;gt;getStatus())) &lt;/p&gt;
{
                $changeSet = array(&quot;status&quot;=&amp;gt;array(0=&amp;gt;$object-&amp;gt;previousStatusBugfix, 1=&amp;gt;$object-&amp;gt;getStatus()));
            }

&lt;p&gt;&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="18347" author="ocramius" created="Thu, 19 Jul 2012 21:43:51 +0000"  >&lt;p&gt;I just wrote a couple of tests (attaching them to the issue shortly) and found out that on `&amp;gt;=2.2.x` your code runs perfectly.&lt;br/&gt;
The problem is on the `2.1.x` branch, and the commit that fixed the issue is &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/4474d30&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/4474d30&lt;/a&gt; for &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1210&quot; title=&quot;if I call computeAssociationChanges twice it will add this collection twice&quot;&gt;&lt;del&gt;DDC-1210&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now looking if it can be merged into `2.1.x` since it doesn&apos;t seem to cause any BC break.&lt;/p&gt;</comment>
                    <comment id="18348" author="beberlei" created="Thu, 19 Jul 2012 22:03:20 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-402&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/402&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/402&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18349" author="beberlei" created="Thu, 19 Jul 2012 22:07:13 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-403&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/403&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/403&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18350" author="ocramius" created="Thu, 19 Jul 2012 22:16:07 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1210&quot; title=&quot;if I call computeAssociationChanges twice it will add this collection twice&quot;&gt;&lt;del&gt;DDC-1210&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18366" author="beberlei" created="Mon, 23 Jul 2012 05:02:17 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-403&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/403&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/403&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18410" author="beberlei" created="Sun, 29 Jul 2012 10:09:18 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-402&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/402&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/402&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1937] [GH-405] Add possibility to cache annotations wih APC</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1937</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 zim32:&lt;/p&gt;

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

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

&lt;p&gt;APC has a bug - after apc_fetch is made, arrays loose their cursors. That is why is_numeric(key(...)) is not working&lt;/p&gt;</description>
                <environment></environment>
            <key id="13871">DDC-1937</key>
            <summary>[GH-405] Add possibility to cache annotations wih APC</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>Sat, 21 Jul 2012 08:12:42 +0000</created>
                <updated>Sun, 29 Jul 2012 10:00:36 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 10:00:14 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18408" author="beberlei" created="Sun, 29 Jul 2012 10:00:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-405&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/405&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/405&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1946] [GH-409] added failing test for refresh with eager fetching</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1946</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 schmittjoh:&lt;/p&gt;

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

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

&lt;p&gt;This is just a failing test case to demonstrate the problem.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13882">DDC-1946</key>
            <summary>[GH-409] added failing test for refresh with eager fetching</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>Thu, 26 Jul 2012 10:58:10 +0000</created>
                <updated>Sun, 29 Jul 2012 09:29:37 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 09:29:37 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18405" author="beberlei" created="Sun, 29 Jul 2012 09:28:22 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-409&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/409&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/409&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1941] [GH-407] DDC-1939 - Removing references to non-existing AssociationMapping class</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1941</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 Ocramius:&lt;/p&gt;

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

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

&lt;p&gt;This fixes &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1939&quot; title=&quot;Trying to save ManyToMany relatrionship&quot;&gt;&lt;del&gt;DDC-1939&lt;/del&gt;&lt;/a&gt;, which is caused by an overlooked usage of `Doctrine\ORM\Mapping\AssociationMapping`, which was removed.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13877">DDC-1941</key>
            <summary>[GH-407] DDC-1939 - Removing references to non-existing AssociationMapping class</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 24 Jul 2012 09:42:12 +0000</created>
                <updated>Sun, 29 Jul 2012 07:33:15 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 07:33:15 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18393" author="beberlei" created="Sun, 29 Jul 2012 07:29:45 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-407&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/407&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/407&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18395" author="beberlei" created="Sun, 29 Jul 2012 07:33:15 +0000"  >&lt;p&gt;Merged this PR&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1939] Trying to save ManyToMany relatrionship</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1939</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When i try to save a many to many relationship i have to following error&lt;/p&gt;

&lt;p&gt;Fatal error: Call to a member function getOwner() on a non-object in  Doctrine/ORM/Persisters/ManyToManyPersister.php on line 181&lt;/p&gt;

&lt;p&gt;It tries to call getOwner on the following array ($mapping)&lt;/p&gt;

&lt;p&gt;array(19) {&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;fieldName&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; string(10) &quot;privileges&quot;&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;joinTable&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; array(4) {&lt;br/&gt;
    &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;name&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; string(36) &quot;fsbackend.user_mch_account_privilege&quot;&lt;br/&gt;
    &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;schema&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; NULL&lt;br/&gt;
    &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;joinColumns&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; array(2) {&lt;br/&gt;
      &lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; =&amp;gt; array(6) &lt;/p&gt;
{
        [&quot;name&quot;] =&amp;gt; string(13) &quot;mch_accountid&quot;
        [&quot;referencedColumnName&quot;] =&amp;gt; string(13) &quot;mch_accountid&quot;
        [&quot;unique&quot;] =&amp;gt; bool(false)
        [&quot;nullable&quot;] =&amp;gt; bool(true)
        [&quot;onDelete&quot;] =&amp;gt; NULL
        [&quot;columnDefinition&quot;] =&amp;gt; NULL
      }
&lt;p&gt;      &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; =&amp;gt; array(6) &lt;/p&gt;
{
        [&quot;name&quot;] =&amp;gt; string(3) &quot;uid&quot;
        [&quot;referencedColumnName&quot;] =&amp;gt; string(3) &quot;uid&quot;
        [&quot;unique&quot;] =&amp;gt; bool(false)
        [&quot;nullable&quot;] =&amp;gt; bool(true)
        [&quot;onDelete&quot;] =&amp;gt; NULL
        [&quot;columnDefinition&quot;] =&amp;gt; NULL
      }
&lt;p&gt;    }&lt;br/&gt;
    &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;inverseJoinColumns&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; array(1) {&lt;br/&gt;
      &lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; =&amp;gt; array(6) &lt;/p&gt;
{
        [&quot;name&quot;] =&amp;gt; string(10) &quot;resourceid&quot;
        [&quot;referencedColumnName&quot;] =&amp;gt; string(10) &quot;resourceid&quot;
        [&quot;unique&quot;] =&amp;gt; bool(false)
        [&quot;nullable&quot;] =&amp;gt; bool(true)
        [&quot;onDelete&quot;] =&amp;gt; NULL
        [&quot;columnDefinition&quot;] =&amp;gt; NULL
      }
&lt;p&gt;    }&lt;br/&gt;
  }&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;targetEntity&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; string(21) &quot;Entity\User\Privilege&quot;&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;mappedBy&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; NULL&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;inversedBy&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; NULL&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;cascade&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; array(0) {&lt;br/&gt;
  }&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;indexBy&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; string(10) &quot;resourceid&quot;&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;fetch&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; int(2)&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;type&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; int(8)&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;isOwningSide&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; bool(true)&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;sourceEntity&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; string(26) &quot;Entity\Merchant\Membership&quot;&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;isCascadeRemove&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; bool(false)&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;isCascadePersist&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; bool(false)&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;isCascadeRefresh&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; bool(false)&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;isCascadeMerge&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; bool(false)&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;isCascadeDetach&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; bool(false)&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;relationToSourceKeyColumns&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; array(2) &lt;/p&gt;
{
    [&quot;mch_accountid&quot;] =&amp;gt; string(13) &quot;mch_accountid&quot;
    [&quot;uid&quot;] =&amp;gt; string(3) &quot;uid&quot;
  }
&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;joinTableColumns&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; array(3) &lt;/p&gt;
{
    [0] =&amp;gt; string(13) &quot;mch_accountid&quot;
    [1] =&amp;gt; string(3) &quot;uid&quot;
    [2] =&amp;gt; string(10) &quot;resourceid&quot;
  }
&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;relationToTargetKeyColumns&amp;quot;&amp;#93;&lt;/span&gt; =&amp;gt; array(1) &lt;/p&gt;
{
    [&quot;resourceid&quot;] =&amp;gt; string(10) &quot;resourceid&quot;
  }
&lt;p&gt;}&lt;/p&gt;</description>
                <environment></environment>
            <key id="13874">DDC-1939</key>
            <summary>Trying to save ManyToMany relatrionship</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="yokoloko">Jeremie Tom tom</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 Jul 2012 10:21:04 +0000</created>
                <updated>Sun, 29 Jul 2012 07:32:46 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 07:32:46 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18369" author="ocramius" created="Mon, 23 Jul 2012 10:30:37 +0000"  >&lt;p&gt;Can you try to replace your cache with an `ArrayCache` and see if the problem may come from there?&lt;br/&gt;
It would also be interesting to see your bootstrap code and the code you use to interact with the collection.&lt;/p&gt;</comment>
                    <comment id="18370" author="yokoloko" created="Mon, 23 Jul 2012 11:56:54 +0000"  >&lt;p&gt;I&apos;m already using an ArrayCache for my cache.&lt;/p&gt;

&lt;p&gt;Also for my bootstrap I&apos;m using this implementation of it : &lt;a href=&quot;https://github.com/guilhermeblanco/ZendFramework1-Doctrine2&quot; class=&quot;external-link&quot;&gt;https://github.com/guilhermeblanco/ZendFramework1-Doctrine2&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here is how i interact with the collection.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;$collection-&amp;gt;clear();&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;foreach ($values as $value) {&lt;/tt&gt;&lt;br/&gt;
    &lt;tt&gt;$collection-&amp;gt;add(&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;$this-&amp;gt;_em-&amp;gt;getReference(&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&apos;Entity\User\Privilege&apos;,&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;$value&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;));&lt;/tt&gt;}&lt;/p&gt;

&lt;p&gt;... Later on ...&lt;br/&gt;
... I have an entity $userAccount with many memberships set to Cascade persist, ....&lt;br/&gt;
... and on the membership entity relationship i have my collection ...&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;$this-&amp;gt;_em-&amp;gt;persist($userAccount);&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;$this-&amp;gt;_em-&amp;gt;flush();&lt;/tt&gt;&lt;/p&gt;
</comment>
                    <comment id="18371" author="yokoloko" created="Tue, 24 Jul 2012 07:52:58 +0000"  >&lt;p&gt;I don&apos;t know if it helps but it works if I replace $mapping with $coll on line 181 : &lt;/p&gt;

&lt;p&gt;&lt;tt&gt;$sourceClass = $this-&amp;gt;_em-&amp;gt;getClassMetadata(get_class($mapping-&amp;gt;getOwner()));&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Replaced by :&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;$sourceClass = $this-&amp;gt;_em-&amp;gt;getClassMetadata(get_class($coll-&amp;gt;getOwner()));&lt;/tt&gt;&lt;/p&gt;</comment>
                    <comment id="18372" author="ocramius" created="Tue, 24 Jul 2012 09:31:33 +0000"  >&lt;p&gt;Looks like code coming from the (removed) AssociationMapping class. The fix seems also to be valid. I&apos;m patching this.&lt;/p&gt;</comment>
                    <comment id="18373" author="ocramius" created="Tue, 24 Jul 2012 09:43:07 +0000"  >&lt;p&gt;Nevermind, I don&apos;t think this needs a test. It is just something overlooked during a refactoring. Being handled at &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1941&quot; title=&quot;[GH-407] DDC-1939 - Removing references to non-existing AssociationMapping class&quot;&gt;&lt;del&gt;DDC-1941&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18374" author="ocramius" created="Tue, 24 Jul 2012 09:57:34 +0000"  >&lt;p&gt;Could you please provide the models anyway? It would be interesting to see why the test suite doesn&apos;t cover that part &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;br/&gt;
Thank you!&lt;/p&gt;</comment>
                    <comment id="18375" author="yokoloko" created="Tue, 24 Jul 2012 12:36:54 +0000"  >&lt;p&gt;Ok I attached it. Tell me if you need more informations i didn&apos;t upload the full models. But just the parts i thought were relevant.&lt;/p&gt;</comment>
                    <comment id="18394" author="beberlei" created="Sun, 29 Jul 2012 07:32:46 +0000"  >&lt;p&gt;Fixed and applied to 2.2.3 and 2.3&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11210" name="Membership.php" size="968" author="yokoloko" created="Tue, 24 Jul 2012 12:36:54 +0000" />
                    <attachment id="11212" name="Privileges.php" size="332" author="yokoloko" created="Tue, 24 Jul 2012 12:36:54 +0000" />
                    <attachment id="11211" name="UserAccount.php" size="627" author="yokoloko" created="Tue, 24 Jul 2012 12:36:54 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1951] [GH-411] Added the new DBAL 2.3 types in the EntityGenerator typehint map</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1951</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 stof:&lt;/p&gt;

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

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

&lt;p&gt;This fixes the generated typehint for these new types.&lt;/p&gt;

&lt;p&gt;@beberlei please backport it in 2.3 too&lt;/p&gt;</description>
                <environment></environment>
            <key id="13887">DDC-1951</key>
            <summary>[GH-411] Added the new DBAL 2.3 types in the EntityGenerator typehint map</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 27 Jul 2012 08:37:22 +0000</created>
                <updated>Sun, 29 Jul 2012 07:05:07 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 07:05:07 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18390" author="beberlei" created="Sun, 29 Jul 2012 07:04:09 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-411&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/411&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/411&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1931] Cache $oid and $className through method calls in UoW internals</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1931</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;As suggested by &lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=johannes&quot; class=&quot;user-hover&quot; rel=&quot;johannes&quot;&gt;Johannes Schmitt&lt;/a&gt;, calls in UoW can re-use $oid and $className by passing them to the various methods of UoW internals&lt;/p&gt;</description>
                <environment></environment>
            <key id="13863">DDC-1931</key>
            <summary>Cache $oid and $className through method calls in UoW internals</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="ocramius">Marco Pivetta</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 Jul 2012 09:14:46 +0000</created>
                <updated>Tue, 24 Jul 2012 09:47:32 +0000</updated>
                    <resolved>Tue, 24 Jul 2012 09:47:32 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18326" author="ocramius" created="Wed, 18 Jul 2012 01:03:18 +0000"  >&lt;p&gt;Performance gain is nearly 0... Not worth it as far as I&apos;ve seen.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1919] Doctrine fails to escape entity with reserved name in various situations</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1919</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have submitted a PR here, fixing part of this issue: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/166&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/166&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;However, it fails when UPDATE or INSERT is used. I&apos;m using a very simple, and common, entity name: Group. Doctrine is failing to escape this in various situations, causing queries to fail in MySQL due to reserved keywords.&lt;/p&gt;</description>
                <environment>MySQL</environment>
            <key id="13845">DDC-1919</key>
            <summary>Doctrine fails to escape entity with reserved name in various situations</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="klaussilveira">Klaus Silveira</reporter>
                        <labels>
                    </labels>
                <created>Tue, 10 Jul 2012 21:34:08 +0000</created>
                <updated>Thu, 19 Jul 2012 18:27:21 +0000</updated>
                    <resolved>Wed, 11 Jul 2012 19:28:24 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.3</fixVersion>
                <fixVersion>Git Master</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18274" author="ocramius" created="Wed, 11 Jul 2012 00:31:41 +0000"  >&lt;p&gt;Can you try using the quoting strategy in master? By defining an &apos;@Table(name=&quot;`Group`&quot;)&apos; on your entity you should be able to fix this issue by yourself... Anyway, this is only available in latest master.&lt;br/&gt;
Please give it a try and let us know.&lt;/p&gt;</comment>
                    <comment id="18275" author="klaussilveira" created="Wed, 11 Jul 2012 17:27:34 +0000"  >&lt;p&gt;That hack, of course, fixes the problem. However, Doctrine is failing to escape entities with reserved keywords in various different situations and this should be a major problem, specially since there are many keywords that are common table names. Having to change the table name or escape the table name manually is not the best solution.&lt;/p&gt;

&lt;p&gt;I have look through the code but could not find out why getQuotedTableName() is failing to quote the table name &quot;Group&quot;. I fixed the other problem, involving schema creation, but this one i couldn&apos;t fix. That&apos;s why i&apos;m opening the issue, hoping someone with more experience in the ORM codebase manages to fix it.&lt;/p&gt;</comment>
                    <comment id="18276" author="ocramius" created="Wed, 11 Jul 2012 18:04:26 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=klaussilveira&quot; class=&quot;user-hover&quot; rel=&quot;klaussilveira&quot;&gt;Klaus Silveira&lt;/a&gt;, doctrine won&apos;t quote (at least with the default strategy) a table called &quot;Group&quot;. The default strategy will look for the sorrounding &quot;`&quot; (&quot;`Group`&quot;).&lt;br/&gt;
Is it still failing to quote something in latest master? Can you write a simple example of a failure you are getting?&lt;/p&gt;</comment>
                    <comment id="18277" author="klaussilveira" created="Wed, 11 Jul 2012 18:12:48 +0000"  >&lt;p&gt;The failure is caused when querying anything related to an entity wich it&apos;s name is a reserved keyword, for example, an entity called &quot;Group&quot;. I expected Doctrine to quote such table names. &lt;/p&gt;</comment>
                    <comment id="18278" author="ocramius" created="Wed, 11 Jul 2012 18:41:26 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=klaussilveira&quot; class=&quot;user-hover&quot; rel=&quot;klaussilveira&quot;&gt;Klaus Silveira&lt;/a&gt; did you put an @Table(name=&quot;`Group`&quot;) in it?&lt;/p&gt;</comment>
                    <comment id="18279" author="ocramius" created="Wed, 11 Jul 2012 18:48:04 +0000"  >&lt;p&gt;Please note that &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;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;@Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;Group&quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; and &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;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;@Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`Group`&quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; are quite different. That&apos;s why I&apos;m asking&lt;/p&gt;</comment>
                    <comment id="18280" author="klaussilveira" created="Wed, 11 Jul 2012 19:00:52 +0000"  >&lt;p&gt;As i said, that hack fixes the problem. But i don&apos;t believe that having to change the table name or escape the table name manually is the best solution. Doctrine should be doing that transparently, as it does for other situations (such as during schema creation). Why not during all other operations? Makes no sense at all.&lt;/p&gt;</comment>
                    <comment id="18281" author="ocramius" created="Wed, 11 Jul 2012 19:22:07 +0000"  >&lt;p&gt;This is not a hack... In ORM, &quot;`&quot; is not the MySQL identifier quote. It is exactly thought as a character with which you tell the ORM that the identifier should be quoted.&lt;br/&gt;
The default strategy does make use of it, so please use it.&lt;/p&gt;</comment>
                    <comment id="18282" author="ocramius" created="Wed, 11 Jul 2012 19:27:29 +0000"  >&lt;p&gt;Also, we won&apos;t collect the SQL reserved keywords, nor we can know what keywords are used in all vendors. The patch for the quoting strategy was exactly thought to allow end users to use insecure names for their objects/fields/indexes/etc but without having the ORM implement those checks for them (since it would just be messy and too &quot;magic&quot;).&lt;/p&gt;

&lt;p&gt;Please also reconsider your pull request on github too ( &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-298&quot; title=&quot;[GH-166] Fixes a bug caused by unquoted reserved table name being referenced during schema creation&quot;&gt;&lt;del&gt;DBAL-298&lt;/del&gt;&lt;/a&gt; ).&lt;/p&gt;

&lt;p&gt;I&apos;m closing this one&lt;/p&gt;</comment>
                    <comment id="18283" author="klaussilveira" created="Wed, 11 Jul 2012 19:32:14 +0000"  >&lt;p&gt;Then what&apos;s the purpose of Doctrine\DBAL\Platforms\Keywords\MySQLKeywords?&lt;/p&gt;</comment>
                    <comment id="18284" author="ocramius" created="Wed, 11 Jul 2012 19:38:58 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=klaussilveira&quot; class=&quot;user-hover&quot; rel=&quot;klaussilveira&quot;&gt;Klaus Silveira&lt;/a&gt; not sure, but it isn&apos;t used in ORM.&lt;/p&gt;</comment>
                    <comment id="18339" author="beberlei" created="Thu, 19 Jul 2012 18:27:21 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-166&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/166&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/166&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1917] [GH-397] Cleanup/removing deprecated metadata drivers</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1917</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 Ocramius:&lt;/p&gt;

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

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

&lt;p&gt;Removing deprecated drivers that are already available in Doctrine\Common.&lt;br/&gt;
This PR depends on doctrine/common#164 and is a &lt;b&gt;BC Break&lt;/b&gt;. For now it fails since the referenced git submodule for Doctrine\Common points to a commit that isn&apos;t yet in the common repository.&lt;/p&gt;

&lt;p&gt;[!&lt;span class=&quot;error&quot;&gt;&amp;#91;Build Status&amp;#93;&lt;/span&gt;(&lt;a href=&quot;https://secure.travis-ci.org/Ocramius/doctrine2.png?branch=cleanup/removing-deprecated-metadata-drivers)](http://travis-ci.org/Ocramius/doctrine2&quot; class=&quot;external-link&quot;&gt;https://secure.travis-ci.org/Ocramius/doctrine2.png?branch=cleanup/removing-deprecated-metadata-drivers)](http://travis-ci.org/Ocramius/doctrine2&lt;/a&gt;)&lt;/p&gt;</description>
                <environment></environment>
            <key id="13841">DDC-1917</key>
            <summary>[GH-397] Cleanup/removing deprecated metadata drivers</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>Tue, 10 Jul 2012 00:57:27 +0000</created>
                <updated>Thu, 12 Jul 2012 07:30:10 +0000</updated>
                    <resolved>Thu, 12 Jul 2012 07:30:10 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18288" author="beberlei" created="Thu, 12 Jul 2012 07:29:58 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-397&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/397&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/397&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1915] [GH-396] DDC-1893 - Updating configuration to reflect latest Doctrine Common changes</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1915</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 Ocramius:&lt;/p&gt;

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

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

&lt;p&gt;This PR fixes &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1893&quot; title=&quot;Doctrine\ORM\Mapping\Driver\AnnotationDriver::create() not updated for new annotation readers&quot;&gt;&lt;del&gt;DDC-1893&lt;/del&gt;&lt;/a&gt; (&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1893&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1893&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The `getDefaultAnnotationDriver` method was changes to stop supporting older incompatible Doctrine Common versions in favour of the newer logic.&lt;/p&gt;

&lt;p&gt;Also, changing logic so that the SimpleAnnotationReader is no more the&lt;br/&gt;
default one. An additional parameter for the method will allow using it (this is a &lt;b&gt;BC break&lt;/b&gt;!)&lt;/p&gt;

&lt;p&gt;The CS fixes that were additionally implemented (along with other minor changes&lt;br/&gt;
that do not affect BC compatibility are caused by a CS sniff via IDE.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13833">DDC-1915</key>
            <summary>[GH-396] DDC-1893 - Updating configuration to reflect latest Doctrine Common changes</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 8 Jul 2012 13:01:22 +0000</created>
                <updated>Wed, 11 Jul 2012 23:54:17 +0000</updated>
                    <resolved>Sun, 8 Jul 2012 16:26:30 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18246" author="beberlei" created="Sun, 8 Jul 2012 16:26:22 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-396&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/396&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/396&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1637] Linq-like Filter API for collections</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1637</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;We want an API that allows users to filter collections to subsets on the SQL level during the runtime (not using DQL).&lt;/p&gt;

&lt;p&gt;Example:&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;class Post
{
   &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $comments;
   &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getRecentComments()
   {
       &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;comments-&amp;gt;select(Expression::lessThan(&lt;span class=&quot;code-quote&quot;&gt;&quot;commentDate&quot;&lt;/span&gt;, &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \DateTime(&lt;span class=&quot;code-quote&quot;&gt;&quot;-7 days&quot;&lt;/span&gt;)));
   }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The language of this Expressions for selecting entities out of a collection has to be so simple that it works on both arrays and any persistence backed data-source.&lt;/p&gt;

&lt;p&gt;The Collection#select() method would return a new collection that is not equal the invoked collection.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13422">DDC-1637</key>
            <summary>Linq-like Filter API for collections</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>Mon, 6 Feb 2012 22:41:36 +0000</created>
                <updated>Mon, 9 Jul 2012 15:17:03 +0000</updated>
                    <resolved>Mon, 9 Jul 2012 15:17:03 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>6</votes>
                        <watches>9</watches>
                        <comments>
                    <comment id="17378" author="beberlei" created="Wed, 8 Feb 2012 08:36:29 +0000"  >&lt;p&gt;First API example: &lt;a href=&quot;https://gist.github.com/1766769&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/1766769&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17607" author="beberlei" created="Fri, 16 Mar 2012 22:43:47 +0000"  >&lt;p&gt;There is a PR now &lt;a href=&quot;https://github.com/doctrine/common/pull/117&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/117&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18261" author="beberlei" created="Mon, 9 Jul 2012 15:17:03 +0000"  >&lt;p&gt;Implemented&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1848] &quot;QueryException: Invalid parameter number: number of bound variables does not match number of tokens&quot; with &quot;dev-master&quot; of Doctrine\ORM + Pagerfanta.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1848</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Using Symfony2 master with Doctrine\ORM master &amp;amp; Pagerfanta paginator (which uses Doctrine paginator internally) causes this exception.&lt;/p&gt;

&lt;p&gt;&quot;QueryException: Invalid parameter number: number of bound variables does not match number of tokens&quot;. Works fine with the master of Symfony &amp;amp; same version of Pagerfanta, but with 2.2 of Doctrine ORM.&lt;/p&gt;

&lt;p&gt;Full app to see it is available here: &lt;a href=&quot;http://github.com/Sylius/Sylius-Sandbox&quot; class=&quot;external-link&quot;&gt;http://github.com/Sylius/Sylius-Sandbox&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Full trace (without twig and Symfony part)&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;1/2&amp;#93;&lt;/span&gt; QueryException: Invalid parameter number: number of bound variables does not match number of tokens   &lt;br/&gt;
in /home/pjedrzejewski/Sylius.org/workspace/Sandbox/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php at line 72    &lt;br/&gt;
at QueryException ::invalidParameterNumber () &lt;br/&gt;
in /home/pjedrzejewski/Sylius.org/workspace/Sandbox/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 255    &lt;br/&gt;
at Query -&amp;gt;_doExecute () &lt;br/&gt;
in /home/pjedrzejewski/Sylius.org/workspace/Sandbox/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 737    &lt;br/&gt;
at AbstractQuery -&amp;gt;execute (null, &apos;3&apos;) &lt;br/&gt;
in /home/pjedrzejewski/Sylius.org/workspace/Sandbox/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 562    &lt;br/&gt;
at AbstractQuery -&amp;gt;getScalarResult () &lt;br/&gt;
in /home/pjedrzejewski/Sylius.org/workspace/Sandbox/vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php at line 144   &lt;br/&gt;
at Paginator -&amp;gt;count () &lt;br/&gt;
at count (object(Paginator)) &lt;br/&gt;
in /home/pjedrzejewski/Sylius.org/workspace/Sandbox/vendor/pagerfanta/pagerfanta/src/Pagerfanta/Adapter/DoctrineORMAdapter.php at line 75    &lt;br/&gt;
at DoctrineORMAdapter -&amp;gt;getNbResults () &lt;br/&gt;
in /home/pjedrzejewski/Sylius.org/workspace/Sandbox/vendor/pagerfanta/pagerfanta/src/Pagerfanta/Pagerfanta.php at line 167    &lt;br/&gt;
at Pagerfanta -&amp;gt;getNbResults () &lt;br/&gt;
in /home/pjedrzejewski/Sylius.org/workspace/Sandbox/vendor/pagerfanta/pagerfanta/src/Pagerfanta/Pagerfanta.php at line 190    &lt;br/&gt;
at Pagerfanta -&amp;gt;haveToPaginate () &lt;/p&gt;
</description>
                <environment></environment>
            <key id="13744">DDC-1848</key>
            <summary>&quot;QueryException: Invalid parameter number: number of bound variables does not match number of tokens&quot; with &quot;dev-master&quot; of Doctrine\ORM + Pagerfanta.</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="pjedrzejewski">Pawe&#322; J&#281;drzejewski</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 May 2012 20:50:58 +0000</created>
                <updated>Sun, 8 Jul 2012 16:35:22 +0000</updated>
                    <resolved>Sun, 8 Jul 2012 16:35:22 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18033" author="umpirsky" created="Thu, 31 May 2012 10:34:19 +0000"  >&lt;p&gt;I tested Sylius against this issue with each commit from doctrine master branch, and I find out that bug appeared in this &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/1635e0af4b06ef3015205563b59b505ae3fac69d&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/1635e0af4b06ef3015205563b59b505ae3fac69d&lt;/a&gt; commit.&lt;/p&gt;</comment>
                    <comment id="18244" author="ocramius" created="Sun, 8 Jul 2012 16:10:17 +0000"  >&lt;p&gt;Could you check if this isn&apos;t the same problem reported at &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1803&quot; title=&quot;Paginator usage with a DQL query that is using 2 time the same named binded value failed&quot;&gt;DDC-1803&lt;/a&gt;?&lt;/p&gt;</comment>
                    <comment id="18249" author="beberlei" created="Sun, 8 Jul 2012 16:35:22 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1911] [GH-392] Replaced a shallow-copy with a deep-copy to avoid side effects.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1911</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 egeloen:&lt;/p&gt;

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

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

&lt;p&gt;Hey!&lt;/p&gt;

&lt;p&gt;I&apos;m currently using Symfony 2.1 + Doctrine master branch + Pager fanta master branch.&lt;/p&gt;

&lt;p&gt;I&apos;m facing a very vicious issue. &lt;/p&gt;

&lt;p&gt;The doctrine paginator is able to clone a query with his `cloneQuery` method. This method will only clone the query without this parameters &amp;amp; hints. The issue is the parameters is setted with the `setParameters` method which will only affect the ArrayCollection reference to the new query builder and so, shared the reference between the two queries.&lt;/p&gt;

&lt;p&gt;This PR will make a deep-copy of the ArrayCollection instead of a simple shallow-copy.&lt;/p&gt;

&lt;p&gt;I&apos;m not sure if this fix is the best solution.&lt;/p&gt;

&lt;p&gt;Let me know if you need more information. &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;</description>
                <environment></environment>
            <key id="13826">DDC-1911</key>
            <summary>[GH-392] Replaced a shallow-copy with a deep-copy to avoid side effects.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Jul 2012 16:11:00 +0000</created>
                <updated>Sun, 8 Jul 2012 16:34:34 +0000</updated>
                    <resolved>Sun, 8 Jul 2012 16:34:34 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18248" author="beberlei" created="Sun, 8 Jul 2012 16:34:15 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-392&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/392&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/392&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1893] Doctrine\ORM\Mapping\Driver\AnnotationDriver::create() not updated for new annotation readers</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1893</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;After refactoring of annotation readers, there are new defaults and the current implementation calls undefined method, because Doctrine\Common\Annotations\AnnotationReader has been refactored too. The new way should be probably requiring Doctrine\Common\Annotations\Reader interface as $reader parameter and if not present constructing the default as in Doctrine\ORM\Configuration::create  : &lt;/p&gt;

&lt;p&gt;AnnotationRegistry::registerFile(_&lt;em&gt;DIR&lt;/em&gt;_ . &apos;/Mapping/Driver/DoctrineAnnotations.php&apos;);&lt;/p&gt;

&lt;p&gt;$reader = new \Doctrine\Common\Annotations\SimpleAnnotationReader();&lt;br/&gt;
$reader-&amp;gt;addNamespace(&apos;Doctrine\ORM\Mapping&apos;);&lt;br/&gt;
$reader = new \Doctrine\Common\Annotations\CachedReader($reader, new ArrayCache());&lt;/p&gt;</description>
                <environment></environment>
            <key id="13801">DDC-1893</key>
            <summary>Doctrine\ORM\Mapping\Driver\AnnotationDriver::create() not updated for new annotation readers</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="vasekpurchart">Va&#353;ek Purchart</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Jun 2012 07:18:31 +0000</created>
                <updated>Sun, 8 Jul 2012 16:26:42 +0000</updated>
                    <resolved>Sun, 8 Jul 2012 16:26:42 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18216" author="ocramius" created="Fri, 6 Jul 2012 12:38:58 +0000"  >&lt;p&gt;Looking into this today&lt;/p&gt;</comment>
                    <comment id="18219" author="beberlei" created="Fri, 6 Jul 2012 12:42:29 +0000"  >&lt;p&gt;$config-&amp;gt;newDefaultAnnotationDriver should have a flag for picking the simple or the &quot;ORM&lt;br class=&quot;atl-forced-newline&quot; /&gt;&quot; prefixed reader&lt;/p&gt;</comment>
                    <comment id="18242" author="ocramius" created="Sun, 8 Jul 2012 14:36:24 +0000"  >&lt;p&gt;Handled in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1915&quot; title=&quot;[GH-396] DDC-1893 - Updating configuration to reflect latest Doctrine Common changes&quot;&gt;&lt;del&gt;DDC-1915&lt;/del&gt;&lt;/a&gt; (&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/396&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/396&lt;/a&gt;)&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1657] The Doctrine cli tool  does not handle schema correctly.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1657</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;At first time, sorry for my english and I will be short and brief, the problem is clearly explained in the title and the test is very simple.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;The entity&lt;/b&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-object&quot;&gt;Short&lt;/span&gt; description.
 *
 * @Entity(repositoryClass=&lt;span class=&quot;code-quote&quot;&gt;&quot;Stonewood\Model\Entity\Repository\Screen&quot;&lt;/span&gt;)
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;stonewood.screen&quot;&lt;/span&gt;)
 */
class Screen &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Entity
{

    /**
     * Identifier
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer
     *
     * @Id
     * @GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;IDENTITY&quot;&lt;/span&gt;)
     * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;pk&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, 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; $pk;

    /**
     * Title
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
     *
     * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;title&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=255, 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; $title;

    /**
     * Path
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
     *
     * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;path&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=255, 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; $path;

    /**
     * Register date
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Date
     *
     * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;ddate&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;date&quot;&lt;/span&gt;, 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; $ddate;

    /**
     * Avatar
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Stonewood\Model\Entity\Avatar
     *
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Stonewood\Model\Entity\Avatar&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;pk_avatar&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;pk&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $avatar;

    /**
     *
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct($pk = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;, $title = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;, $path = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;, $ddate = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;, $avatar = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;setPk($pk);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;setTitle($title);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;setPath($path);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;setDdate($ddate);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;setAvatar($avatar);
    }

    [...]

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

&lt;p&gt;Before the first deployment&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;./doctrine orm:schema-tool:update --dump-sql
CREATE TABLE stonewood.screen (pk SERIAL NOT NULL, pk_avatar INT DEFAULT NULL, title VARCHAR(255) NOT NULL, path VARCHAR(255) NOT NULL, ddate DATE NOT NULL, PRIMARY KEY(pk));
CREATE INDEX IDX_D91A7FB3E9032144 ON stonewood.screen (pk_avatar);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;During the first deployement&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; 
./doctrine orm:schema-tool:update --force
Updating database schema...
Database schema updated successfully! &lt;span class=&quot;code-quote&quot;&gt;&quot;100&quot;&lt;/span&gt; queries were executed
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;p&gt;&lt;b&gt;I test the application and all work correctly&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;After this test&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; 
./doctrine orm:schema-tool:update --dump-sql
ALTER TABLE screen ADD pk SERIAL NOT NULL;
ALTER TABLE screen ADD pk_avatar INT DEFAULT NULL;
ALTER TABLE screen ADD title VARCHAR(255) NOT NULL;
ALTER TABLE screen ADD path VARCHAR(255) NOT NULL;
ALTER TABLE screen ADD ddate DATE NOT NULL;
ALTER TABLE screen ADD CONSTRAINT FK_D91A7FB3E9032144 FOREIGN KEY (pk_avatar) REFERENCES stonewood.avatar (pk) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE;
CREATE INDEX IDX_D91A7FB3E9032144 ON screen (pk_avatar);
ALTER TABLE screen ADD PRIMARY KEY (pk);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;The result is false. I should see &lt;em&gt;Nothing to update - your database is already in sync with the current entity metadata.&lt;/em&gt;&lt;br/&gt;
In addition, the schema name does not appear, except for foreign key, what must be causing the problem.&lt;/p&gt;</description>
                <environment>Linux Mint Debian Edition, PHP 5.3.10, PostgreSQL 9.1</environment>
            <key id="13460">DDC-1657</key>
            <summary>The Doctrine cli tool  does not handle schema correctly.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="presteus">Presteus</reporter>
                        <labels>
                    </labels>
                <created>Sun, 19 Feb 2012 06:08:47 +0000</created>
                <updated>Sun, 8 Jul 2012 16:22:02 +0000</updated>
                    <resolved>Sun, 8 Jul 2012 16:22:02 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17989" author="beberlei" created="Sun, 27 May 2012 08:42:11 +0000"  >&lt;p&gt;This issue was partially fixed in DBAL already, however it seems there is still a problem with sequence detection.&lt;/p&gt;</comment>
                    <comment id="18245" author="beberlei" created="Sun, 8 Jul 2012 16:22:02 +0000"  >&lt;p&gt;Fixed the sequence problem in 2.3, the other schema problems where indeed fixed in 2.2.1 already.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1912] [GH-393] Updated the classmetadata factory for Common 2.3</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1912</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 stof:&lt;/p&gt;

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

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

&lt;p&gt;This adds the new method introduced in doctrine/common#162&lt;/p&gt;</description>
                <environment></environment>
            <key id="13827">DDC-1912</key>
            <summary>[GH-393] Updated the classmetadata factory for Common 2.3</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Jul 2012 20:19:43 +0000</created>
                <updated>Sat, 7 Jul 2012 14:23:19 +0000</updated>
                    <resolved>Sat, 7 Jul 2012 14:23:19 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18221" author="beberlei" created="Sat, 7 Jul 2012 14:21:48 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-393&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/393&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/393&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1831] Problem while implement a relation many to many with columns names starting with caps</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1831</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Hi, In my team we are implementing a solution that involves make a relation many to many.&lt;/p&gt;

&lt;p&gt;The problem is that the columns names of the middle table start with caps.&lt;/p&gt;

&lt;p&gt;we make correction to ORM to solve this problem. I attach to you the files modify.&lt;/p&gt;


</description>
                <environment></environment>
            <key id="13718">DDC-1831</key>
            <summary>Problem while implement a relation many to many with columns names starting with caps</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="pminetti">Pablo Minetti</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 May 2012 17:28:36 +0000</created>
                <updated>Fri, 6 Jul 2012 12:41:38 +0000</updated>
                    <resolved>Fri, 6 Jul 2012 12:41:38 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18044" author="fabio.bat.silva" created="Tue, 5 Jun 2012 21:41:46 +0000"  >&lt;p&gt;Hi Pablo,&lt;/p&gt;

&lt;p&gt;I&apos;m working on a quote patch right now.&lt;br/&gt;
I think that will fix a lot of quote issues.&lt;/p&gt;

&lt;p&gt;Could you attach a test for this case please ?&lt;/p&gt;</comment>
                    <comment id="18192" author="beberlei" created="Thu, 5 Jul 2012 18:19:32 +0000"  >&lt;p&gt;Fabio, any stats on this one? Is it fixed through your change?&lt;/p&gt;</comment>
                    <comment id="18193" author="fabio.bat.silva" created="Thu, 5 Jul 2012 18:31:45 +0000"  >&lt;p&gt;There is no answers from Pablo,&lt;/p&gt;

&lt;p&gt;I think this is fixed by quote strategy, also &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1850&quot; title=&quot;Problems deleting when fields are case sensitive, and realtion many to many too&quot;&gt;&lt;del&gt;DDC-1850&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
but without entities or tests is hard to know if are really fixed.&lt;/p&gt;


&lt;p&gt;if we don&apos;t get any feedback from Pablo, I think both could be closed.&lt;/p&gt;</comment>
                    <comment id="18218" author="beberlei" created="Fri, 6 Jul 2012 12:41:38 +0000"  >&lt;p&gt;No feeback given and a fix was pushed to master. Please reopen if problems persist with master + custom quoting strategy.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11190" name="defect_patch.txt" size="4913" author="pminetti" created="Mon, 21 May 2012 17:28:36 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-852] An easy way of generally setting the default id name/foreign key name suffix doctrine uses</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-852</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Doctrine 2 is currently using &quot;id&quot; as the default name for identifier columns, and &quot;_id&quot; as suffix for corresponding foreign key columns. I think this is quite reasonable in most cases.&lt;/p&gt;

&lt;p&gt;Now, assuming that for any reason I wanted to change this to something else for &lt;b&gt;all&lt;/b&gt; relationships, currently there does not seem to be any easy way to do it.&lt;br/&gt;
You will have to give a complete JoinColumn definition on every single relationship declaration, like (assuming that I want the new ID name to be &quot;dbID&quot;):&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ManyToOne(targetEntity=&quot;persistentData\model\import\Whatever&quot;, inversedBy=&quot;someReferenceThatPointsHere&quot;)&lt;/li&gt;
	&lt;li&gt;@JoinColumn(name=&quot;whatever_dbid&quot;, referencedColumnName=&quot;dbId&quot;)&lt;br/&gt;
  */&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The reason why I am doing this is that I am doing a 1:1 data import based on a data model that is already defined, and it just happens to contain properties named &quot;id&quot;,&lt;br/&gt;
which unfortunately even have a problem-domain meaning. So instead of mapping those problem-domain properties to something else (breaking my 1:1 convention), or&lt;br/&gt;
using something that does have a problem-domain-meaning as a primary key (which I consider bad practice), I thought I might just use purely technical ids and instruct&lt;br/&gt;
doctrine to choose a different name for those. This is, fortunately, possible. But unless I am missing something here, it needs to be specified on every single relationship.&lt;/p&gt;

&lt;p&gt;It would be great to have a less redundant way of configuring Doctrine to use a different name/suffix generally, e.g. by calling a setter method on the configuration object, like&lt;br/&gt;
$configuration-&amp;gt;setDefaultIdColumnName().&lt;/p&gt;</description>
                <environment></environment>
            <key id="12050">DDC-852</key>
            <summary>An easy way of generally setting the default id name/foreign key name suffix doctrine uses</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="dalvarez">Daniel Alvarez Arribas</reporter>
                        <labels>
                    </labels>
                <created>Sun, 31 Oct 2010 23:20:48 +0000</created>
                <updated>Thu, 5 Jul 2012 22:14:31 +0000</updated>
                    <resolved>Sat, 24 Dec 2011 16:47:15 +0000</resolved>
                            <version>2.0-BETA4</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="14653" author="mjh_ca" created="Mon, 1 Nov 2010 03:09:26 +0000"  >&lt;p&gt;Related to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-559&quot; title=&quot;Allow table name and column names to be modified by a user-supplied inflector&quot;&gt;&lt;del&gt;DDC-559&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17099" author="beberlei" created="Sat, 24 Dec 2011 16:46:07 +0000"  >&lt;p&gt;Related Pull Request was closed: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/241&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/241&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17101" author="guilhermeblanco" created="Sat, 24 Dec 2011 16:47:15 +0000"  >&lt;p&gt;FIxed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/abb258c951dd416fc5325ef548d15c7acd35703e&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/abb258c951dd416fc5325ef548d15c7acd35703e&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18213" author="beberlei" created="Thu, 5 Jul 2012 22:14:31 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-391&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/391&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/391&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1735] [GH-312] Removed LOCK_EX for writing Proxy class file</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1735</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 hason:&lt;/p&gt;

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

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

&lt;p&gt;LOCK_EX will not work on NFS and many other networked file systems.&lt;/p&gt;

&lt;p&gt;Replaces #307&lt;/p&gt;</description>
                <environment></environment>
            <key id="13571">DDC-1735</key>
            <summary>[GH-312] Removed LOCK_EX for writing Proxy class file</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>Thu, 29 Mar 2012 11:23:48 +0000</created>
                <updated>Thu, 5 Jul 2012 20:26:50 +0000</updated>
                    <resolved>Thu, 5 Jul 2012 20:26:50 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17675" author="beberlei" created="Thu, 29 Mar 2012 11:41:34 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-312&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/312&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17683" author="beberlei" created="Fri, 30 Mar 2012 19:55:56 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-312&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/312&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17686" author="beberlei" created="Fri, 30 Mar 2012 20:01:01 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-312&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/312&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17709" author="beberlei" created="Sun, 1 Apr 2012 09:02:14 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-312&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/312&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17746" author="beberlei" created="Wed, 4 Apr 2012 19:59:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-312&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/312&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17786" author="beberlei" created="Fri, 6 Apr 2012 13:50:37 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-312&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/312&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17808" author="beberlei" created="Sat, 7 Apr 2012 07:21:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-312&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/312&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18203" author="beberlei" created="Thu, 5 Jul 2012 20:26:50 +0000"  >&lt;p&gt;Changed to using temporary filename + rename&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1895] update an entity with an ID column which is a relation instead of a normal field</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1895</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I got this error when trying to update an entity with an ID column which is a relation instead of a normal field: &lt;a href=&quot;https://gist.github.com/3399c0ad5e0a44a29f98&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/3399c0ad5e0a44a29f98&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the relevant mapping:&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 Roompot\TRSBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Samson\Bundle\TRSBundle\Entity\Registrar;

/**
 * @ORM\Entity
 */
class RegistrarDepartmentMapping
{
    /**
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;RoompotRegistrar&quot;&lt;/span&gt;)
     * @ORM\JoinColumn(referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;person_id&quot;&lt;/span&gt;)
     * @ORM\Id
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $registrar;

    /**
     * @ORM\ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Department&quot;&lt;/span&gt;)
     * @ORM\Id
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $department;

    /**
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $head = &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getRegistrar()
    {
        &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;registrar;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setRegistrar(Registrar $registrar)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; !== $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;registrar) {
            &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \RuntimeException(&apos;Cannot change registrar! Remove &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; entity and create a &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; one&apos;);
        }
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;registrar = $registrar;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getDepartment()
    {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; !== $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;registrar) {
            &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \RuntimeException(&apos;Cannot change department! Remove &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; entity and create a &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; one&apos;);
        }
        &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;department;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setDepartment(Department $department)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;department = $department;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function isHead()
    {
        &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;head;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setHead($head)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;head = $head;
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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 Roompot\TRSBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Samson\Bundle\TRSBundle\Entity\Registrar;

/**
 * @ORM\Entity
 */
class RoompotRegistrar &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Registrar
{
    [...]
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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 Samson\Bundle\TRSBundle\Entity;

use Samson\Bundle\AddressBookBundle\Entity\Person;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity 
 * @ORM\InheritanceType(&lt;span class=&quot;code-quote&quot;&gt;&quot;SINGLE_TABLE&quot;&lt;/span&gt;)
 * @ORM\DiscriminatorColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;discr&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;)
 */
&lt;span class=&quot;code-keyword&quot;&gt;abstract&lt;/span&gt; class Registrar
{
    /**
     * @ORM\Id
     * @ORM\OneToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Samson\Bundle\AddressBookBundle\Entity\Person&quot;&lt;/span&gt;, cascade={&lt;span class=&quot;code-quote&quot;&gt;&quot;persist&quot;&lt;/span&gt;})
     * @ORM\JoinColumn(nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, onDelete=&lt;span class=&quot;code-quote&quot;&gt;&quot;CASCADE&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $person;

    [...]
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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 Samson\Bundle\AddressBookBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass=&lt;span class=&quot;code-quote&quot;&gt;&quot;Samson\Bundle\AddressBookBundle\Entity\PersonRepository&quot;&lt;/span&gt;)
 */
class Person &lt;span class=&quot;code-keyword&quot;&gt;implements&lt;/span&gt; [...]
{
    /**
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     * @ORM\Id
     * @ORM\GeneratedValue
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;

    [...]
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I was able to fix the error by updating BasicEntityPersister: &lt;a href=&quot;https://github.com/SamsonIT/doctrine2/compare/fetching_id_column_if_relation&quot; class=&quot;external-link&quot;&gt;https://github.com/SamsonIT/doctrine2/compare/fetching_id_column_if_relation&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13804">DDC-1895</key>
            <summary>update an entity with an ID column which is a relation instead of a normal field</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="burgov">Bart van den Burg</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Jun 2012 10:12:19 +0000</created>
                <updated>Thu, 5 Jul 2012 20:00:50 +0000</updated>
                    <resolved>Thu, 5 Jul 2012 20:00:50 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18200" author="beberlei" created="Thu, 5 Jul 2012 20:00:50 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1900] Impossibility to override built-in SQL functions</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1900</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Doctrine doesn&apos;t allow to to create own SQL function for DQL if that function is already defined as &quot;built-in&quot;. An example could be custom &lt;tt&gt;DATE_ADD&lt;/tt&gt; implementation.&lt;br/&gt;
Method &lt;tt&gt;FunctionDeclaration()&lt;/tt&gt; in &lt;em&gt;Doctrine\ORM\Query\Parser&lt;/em&gt; gives higher priority to built-in SQL functions, even if they are not&lt;br/&gt;
usable for a specific situation, and registering of own datetime function doesn&apos;t help. This issue makes it  impossible to use some advanced Doctrine extensions, &lt;br/&gt;
for example &lt;a href=&quot;https://github.com/beberlei/DoctrineExtensions&quot; class=&quot;external-link&quot;&gt;https://github.com/beberlei/DoctrineExtensions&lt;/a&gt; that provide fuller implementations.&lt;br/&gt;
Considering the fact that someone may want to use ready components provided by the community, and being new to Doctrine can&apos;t figure out the way to hack&lt;br/&gt;
or workaround this, the issue is a major one.&lt;/p&gt;</description>
                <environment>Any</environment>
            <key id="13810">DDC-1900</key>
            <summary>Impossibility to override built-in SQL functions</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="lex0r">Alex Oroshchuk</reporter>
                        <labels>
                    </labels>
                <created>Sat, 30 Jun 2012 20:00:28 +0000</created>
                <updated>Thu, 5 Jul 2012 19:57:12 +0000</updated>
                    <resolved>Thu, 5 Jul 2012 19:57:12 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18160" author="beberlei" created="Wed, 4 Jul 2012 19:12:20 +0000"  >&lt;p&gt;Just name the method differently.&lt;/p&gt;</comment>
                    <comment id="18182" author="lex0r" created="Thu, 5 Jul 2012 05:52:23 +0000"  >&lt;p&gt;To rename the method one has to &lt;b&gt;KNOW&lt;/b&gt; that he has to rename it, i.e. to know about this issue. &lt;br/&gt;
One has to &lt;b&gt;SPEND hours&lt;/b&gt; (like me) on understanding that there are built-in implementations and other extensions that are meant&lt;br/&gt;
to provide necessary features just don&apos;t work. IMHO it&apos;s just too cruel to leave it as is.&lt;/p&gt;

&lt;p&gt;As to the renaming: is it ok to go and edit source code (change class name at least) provided by someone else and then merge all the sources when new releases appear?&lt;br/&gt;
Is that the only way flexible Doctrine provides? Also, I want DQL to be as close as possible to real SQL. I don&apos;t want to see weird stuff like MY_DATE_ADD or BETTER_DATE_ADD, or whatever it will be.&lt;br/&gt;
Syntax matters, we are all writers, code writers...&lt;/p&gt;

&lt;p&gt;I re-open the issue in order to attract more attention, but you are free to decide how to treat it. Hope you&apos;ll find the best solution. A short line in documentation could notify about current limitations and save hours for people&lt;br/&gt;
who want to be productive with Doctrine.&lt;/p&gt;</comment>
                    <comment id="18199" author="beberlei" created="Thu, 5 Jul 2012 19:57:12 +0000"  >&lt;p&gt;Printing statements in bold isnt helpful. This is open-source.&lt;/p&gt;

&lt;p&gt;However, you are right that this could be more user-friendly. Its now throwing an exception when an internal function is attempted to be overwritten.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1885] Problem with column quoting on Delete</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1885</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;delete($entity) from BasicEntityPersiter is not considering that the columns might be 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;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function delete($entity) {
	$identifier = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;getUnitOfWork()-&amp;gt;getEntityIdentifier($entity);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;deleteJoinTableRecords($identifier);

        $id = array_combine($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_class-&amp;gt;getIdentifierColumnNames(), $identifier);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_conn-&amp;gt;delete($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_class-&amp;gt;getQuotedTableName($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_platform), $id);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The third line:&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;        $id = array_combine($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_class-&amp;gt;getIdentifierColumnNames(), $identifier);
        &lt;span class=&quot;code-comment&quot;&gt;// might be fixed in &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; way (as example):
&lt;/span&gt;        foreach ($identifier as $columnName =&amp;gt; $value) {
                $id[$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_class-&amp;gt;getQuotedColumnName($columnName, $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_platform)] = $value;
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13792">DDC-1885</key>
            <summary>Problem with column quoting on Delete</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="ignaciolarranaga">Ignacio Larranaga</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Jun 2012 19:11:16 +0000</created>
                <updated>Wed, 4 Jul 2012 23:24:40 +0000</updated>
                    <resolved>Wed, 4 Jul 2012 23:24:40 +0000</resolved>
                            <version>2.1.6</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18104" author="fabio.bat.silva" created="Wed, 20 Jun 2012 20:07:26 +0000"  >&lt;p&gt;code format&lt;/p&gt;</comment>
                    <comment id="18105" author="fabio.bat.silva" created="Wed, 20 Jun 2012 20:09:57 +0000"  >&lt;p&gt;Hi Ignacio, &lt;/p&gt;

&lt;p&gt;I think it will be fixed by :&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/372&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/372&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Anyway could you attach a test case for this one please ?&lt;/p&gt;</comment>
                    <comment id="18140" author="ignaciolarranaga" created="Mon, 25 Jun 2012 21:49:12 +0000"  >&lt;p&gt;Hi Fabio, sorry I doesn&apos;t have a test case written &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;</comment>
                    <comment id="18141" author="fabio.bat.silva" created="Mon, 25 Jun 2012 21:51:24 +0000"  >&lt;p&gt;Hi Ignacio,&lt;/p&gt;

&lt;p&gt;No problem,  could you attach your entities ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="18142" author="ignaciolarranaga" created="Mon, 25 Jun 2012 23:26:16 +0000"  >&lt;p&gt;User and Role, and I was just adding a role and updateing.&lt;br/&gt;
The database is PostgresSQL.&lt;/p&gt;</comment>
                    <comment id="18146" author="fabio.bat.silva" created="Tue, 26 Jun 2012 22:32:46 +0000"  >&lt;p&gt;Thanks Ignacio,&lt;/p&gt;

&lt;p&gt;I&apos;m working on this problem.&lt;/p&gt;</comment>
                    <comment id="18179" author="fabio.bat.silva" created="Wed, 4 Jul 2012 23:24:39 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/4bfdcd32f7548c628fc393e36bf37ef8b97a80a8&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/4bfdcd32f7548c628fc393e36bf37ef8b97a80a8&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11201" name="Role.php" size="1848" author="ignaciolarranaga" created="Mon, 25 Jun 2012 23:26:16 +0000" />
                    <attachment id="11200" name="User.php" size="3739" author="ignaciolarranaga" created="Mon, 25 Jun 2012 23:26:16 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1897] [GH-384] [DDC-1885] Fix quotes in many to many persisters</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1897</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of FabioBatSilva:&lt;/p&gt;

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

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

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1885&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1885&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13806">DDC-1897</key>
            <summary>[GH-384] [DDC-1885] Fix quotes in many to many persisters</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, 27 Jun 2012 17:24:22 +0000</created>
                <updated>Wed, 4 Jul 2012 21:57:43 +0000</updated>
                    <resolved>Wed, 4 Jul 2012 21:57:43 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18178" author="beberlei" created="Wed, 4 Jul 2012 21:43:54 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-384&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/384&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/384&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;QuoteStrategy&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


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

&lt;p&gt;This patch fix some quote problems using a default quote strategy and allows users find solutions themselves for weird quote cases.&lt;/p&gt;

&lt;p&gt;This DBAL PR shoud be merged to fix sqlite tests in : &lt;a href=&quot;https://github.com/doctrine/dbal/pull/158&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/158&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;There is a lote of new method calls, the performance tests in sqlite are the following :&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;
			&lt;ol&gt;
				&lt;li&gt;My branch :&lt;br/&gt;
```&lt;br/&gt;
. testSimpleQueryScalarHydrationPerformance10000Rows - 0.37292098999023 seconds&lt;br/&gt;
. testSimpleQueryArrayHydrationPerformance10000Rows - 0.50411009788513 seconds&lt;br/&gt;
. testMixedQueryFetchJoinArrayHydrationPerformance10000Rows - 1.1323919296265 seconds&lt;br/&gt;
. testSimpleQueryPartialObjectHydrationPerformance10000Rows - 1.0243051052094 seconds&lt;br/&gt;
. testSimpleQueryFullObjectHydrationPerformance10000Rows - 4.1673181056976 seconds&lt;br/&gt;
. testMixedQueryFetchJoinPartialObjectHydrationPerformance2000Rows - 0.40403699874878 seconds&lt;br/&gt;
. testMixedQueryFetchJoinFullObjectHydrationPerformance2000Rows - 0.873291015625 seconds&lt;br/&gt;
. 99 CompanyContract: 0.023395&lt;br/&gt;
. 99 CompanyContract: 0.019528&lt;br/&gt;
. Memory usage before: 111715.53125 KB&lt;br/&gt;
. Memory usage after: 110282.875 KB&lt;br/&gt;
. Inserted 10000 objects in 5.5240259170532 seconds&lt;br/&gt;
. 100 CmsArticle findAll(): 0.018410&lt;br/&gt;
. 100 CmsArticle findAll(): 0.014157&lt;br/&gt;
. 100 CmsArticle find(): 0.043304&lt;br/&gt;
. 100 CmsArticle find(): 0.041451&lt;br/&gt;
. 100 CmsGroup: 0.009315&lt;br/&gt;
. 100 CmsGroup: 0.009239&lt;br/&gt;
. 100 CmsUser: 0.024051&lt;br/&gt;
. 100 CmsUser: 0.023655&lt;br/&gt;
. Compute ChangeSet 100 objects in 0.040482997894287 seconds&lt;/li&gt;
			&lt;/ol&gt;
			&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;. Time: 19 seconds, Memory: 261.50Mb&lt;/p&gt;

&lt;p&gt;```&lt;/p&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;
		&lt;ol&gt;
			&lt;li&gt;
			&lt;ol&gt;
				&lt;li&gt;Doctrine Master :&lt;br/&gt;
```&lt;br/&gt;
. testSimpleQueryScalarHydrationPerformance10000Rows - 0.37668490409851 seconds&lt;br/&gt;
. testSimpleQueryArrayHydrationPerformance10000Rows - 0.5009880065918 seconds&lt;br/&gt;
. testMixedQueryFetchJoinArrayHydrationPerformance10000Rows - 1.131824016571 seconds&lt;br/&gt;
. testSimpleQueryPartialObjectHydrationPerformance10000Rows - 1.037791967392 seconds&lt;br/&gt;
. testSimpleQueryFullObjectHydrationPerformance10000Rows - 4.1992859840393 seconds&lt;br/&gt;
. testMixedQueryFetchJoinPartialObjectHydrationPerformance2000Rows - 0.41158103942871 seconds&lt;br/&gt;
. testMixedQueryFetchJoinFullObjectHydrationPerformance2000Rows - 0.86575293540955 seconds&lt;br/&gt;
. 99 CompanyContract: 0.023206&lt;br/&gt;
. 99 CompanyContract: 0.020555&lt;br/&gt;
. Inserted 10000 objects in 5.4995818138123 seconds&lt;br/&gt;
. 100 CmsArticle findAll(): 0.018785&lt;br/&gt;
. 100 CmsArticle findAll(): 0.014160&lt;br/&gt;
. 100 CmsArticle find(): 0.042067&lt;br/&gt;
. 100 CmsArticle find(): 0.041076&lt;br/&gt;
. 100 CmsGroup: 0.009478&lt;br/&gt;
. 100 CmsGroup: 0.010591&lt;br/&gt;
. 100 CmsUser: 0.023727&lt;br/&gt;
. 100 CmsUser: 0.023073&lt;br/&gt;
. Compute ChangeSet 100 objects in 0.040009021759033 seconds&lt;/li&gt;
			&lt;/ol&gt;
			&lt;/li&gt;
		&lt;/ol&gt;
		&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;. Time: 19 seconds, Memory: 260.50Mb&lt;br/&gt;
```&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13773">DDC-1870</key>
            <summary>[GH-372] [DDC-1845] QuoteStrategy</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>Tue, 12 Jun 2012 00:52:46 +0000</created>
                <updated>Wed, 4 Jul 2012 21:40:00 +0000</updated>
                    <resolved>Wed, 4 Jul 2012 21:40:00 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18135" author="beberlei" created="Mon, 25 Jun 2012 03:37:01 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-372&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/372&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/372&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1877] [GH-376] De-deprecate transaction handling methods</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1877</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 lstrojny:&lt;/p&gt;

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

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

&lt;p&gt;As discussed with @beberlei over IRC, deprecating transaction handling methods make the API cleaner but testing of Entity Manager dependent components much messier. Also suggesting to use `$em-&amp;gt;getConnection()-&amp;gt;beginTransaction()` feels like a violation of the law of demeter.&lt;/p&gt;

&lt;p&gt;Therefore this pull request would remove the deprecation warnings from `EntityManager::beginTransaction()`, `EntityManager::commit()`, `EntityManager::rollback()`.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13782">DDC-1877</key>
            <summary>[GH-376] De-deprecate transaction handling methods</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>Sat, 16 Jun 2012 11:26:38 +0000</created>
                <updated>Wed, 4 Jul 2012 19:43:14 +0000</updated>
                    <resolved>Wed, 4 Jul 2012 19:43:14 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1904] [GH-388] Added an empty line feed preceding the return statement</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1904</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 fixe:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13814">DDC-1904</key>
            <summary>[GH-388] Added an empty line feed preceding the return statement</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>Tue, 3 Jul 2012 10:57:34 +0000</created>
                <updated>Wed, 4 Jul 2012 19:34:07 +0000</updated>
                    <resolved>Wed, 4 Jul 2012 19:34:07 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18154" author="beberlei" created="Tue, 3 Jul 2012 13:44:58 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-388&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/388&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/388&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1902] [GH-387] fixed typo in command help text</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1902</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 shieldo:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13812">DDC-1902</key>
            <summary>[GH-387] fixed typo in command help text</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>Mon, 2 Jul 2012 17:12:16 +0000</created>
                <updated>Wed, 4 Jul 2012 19:33:24 +0000</updated>
                    <resolved>Wed, 4 Jul 2012 19:33:24 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18152" author="beberlei" created="Mon, 2 Jul 2012 17:15:39 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-387&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/387&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/387&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1719] When tablename or field name contains an hyphen it generates an error</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1719</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In my database I have a table with &apos;-&apos; (hyphen) in the names of the tables and fields. But when mapping using annotations you get a mysql error because it generates a query that is not conform the mysql syntax. When using a hyphen in field or tablename (or others) you have to place it between quotes.&lt;/p&gt;

&lt;p&gt;The name of the table can be resolved using quotes in the table name, in code it means:&lt;/p&gt;

&lt;p&gt; @Table(name=&quot;directory-file&quot;) to  @Table(name=&quot;`directory-file`&quot;), you can&apos;t use this solution with the in the fields because the alias (AS in mysql syntax) also contains a &apos;-&apos; . Which results in a mysql error.&lt;/p&gt;


&lt;p&gt;Failing code:&lt;/p&gt;

&lt;p&gt;/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@author Laurens&lt;/li&gt;
	&lt;li&gt;@Entity&lt;/li&gt;
	&lt;li&gt;@Table(name=&quot;directory-file&quot;)&lt;br/&gt;
 */&lt;br/&gt;
class Directory_File {&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;    /** @Id @Column(name=&quot;liddirectory-file&quot;,type=&quot;bigint&quot;) @GeneratedValue * */&lt;br/&gt;
    protected $liddirectory_file;&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>PHP 5.3</environment>
            <key id="13546">DDC-1719</key>
            <summary>When tablename or field name contains an hyphen it generates an error</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="lcoudeville">Laurens Coudeville</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Mar 2012 15:56:59 +0000</created>
                <updated>Mon, 25 Jun 2012 13:00:31 +0000</updated>
                    <resolved>Mon, 25 Jun 2012 13:00:31 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18137" author="fabio.bat.silva" created="Mon, 25 Jun 2012 13:00:31 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/cb72219b118c158c9b5344c4b81ff2b1a9149ab0&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/cb72219b118c158c9b5344c4b81ff2b1a9149ab0&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1845] Implements a QuoteStrategy to fix quote problems</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1845</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;As discussed to fix &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1719&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1719&lt;/a&gt;&lt;br/&gt;
and other quote problems we need a quote strategy.&lt;/p&gt;

&lt;p&gt;The QuoteStrategy should implements methods 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;function getColumnName($fieldName, ClassMetadata $class)
function getTableName(ClassMetadata $class)
function getJoinTableName($relation, ClassMetadata $class)
function getIdentifierColumnNames(ClassMetadata $class)
function getColumnAlias($columnName, $counter, ClassMetadata $class = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;All current quotes will be replaced by one default QuoteStrategy. &lt;br/&gt;
That allows users  find solutions themselves for weird quote cases.&lt;/p&gt;


&lt;p&gt;Related Tickets :&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1719&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1719&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-142&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-142&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1843&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1843&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1831&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1831&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13739">DDC-1845</key>
            <summary>Implements a QuoteStrategy to fix quote problems</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="fabio.bat.silva">Fabio B. Silva</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 May 2012 17:47:37 +0000</created>
                <updated>Mon, 25 Jun 2012 12:59:58 +0000</updated>
                    <resolved>Mon, 25 Jun 2012 12:59:58 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18136" author="fabio.bat.silva" created="Mon, 25 Jun 2012 12:59:58 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/cb72219b118c158c9b5344c4b81ff2b1a9149ab0&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/cb72219b118c158c9b5344c4b81ff2b1a9149ab0&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-937] doctrine-mapping.xsd sequence relation-entities </title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-937</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt; I noticed some problems with &lt;br/&gt;
the doctrine-mapping.xsd (which apparently is not used to validate the &lt;br/&gt;
mapping, but only provided to support code completion in your xml- &lt;br/&gt;
editor) &lt;/p&gt;

&lt;p&gt;The order in which you define the elements like cascade and join- &lt;br/&gt;
column(s) for the relation-entities is currently important since it is &lt;br/&gt;
a sequence, but is this really desired? Why force this order? defining &lt;br/&gt;
cascade before join-column would make perfect sense as well, doesn&apos;t &lt;br/&gt;
it. &lt;/p&gt;</description>
                <environment></environment>
            <key id="12233">DDC-937</key>
            <summary>doctrine-mapping.xsd sequence relation-entities </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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="lvanderree">Leon van der Ree</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Dec 2010 10:55:40 +0000</created>
                <updated>Sat, 23 Jun 2012 04:31:23 +0000</updated>
                    <resolved>Sat, 23 Jun 2012 04:31:23 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16555" author="guilhermeblanco" created="Tue, 4 Oct 2011 05:22:46 +0000"  >&lt;p&gt;Is this issue still valid in the latest Doctrine (trunk)? It doesn&apos;t seem to be.&lt;/p&gt;</comment>
                    <comment id="18133" author="guilhermeblanco" created="Sat, 23 Jun 2012 04:31:22 +0000"  >&lt;p&gt;No reply from user and issue seems to be fixed already in master&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1862] [GH-365] DDC-1860 - Composer arbitrary for CLI and composer/autoload.php in different paths</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1862</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 Ocramius:&lt;/p&gt;

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

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

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1860&quot; title=&quot;Make usage of Composer for CLI optional&quot;&gt;DDC-1860&lt;/a&gt; - Composer became a requirement to run CLI some time ago. This patch:&lt;/p&gt;

&lt;p&gt; 1.  Makes composer optional if the user defines his own autoloaders in `cli-config.php`&lt;br/&gt;
 2.  Makes the CLI look for `vendor/composer.php` in various parent paths of the `bin` directory.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13765">DDC-1862</key>
            <summary>[GH-365] DDC-1860 - Composer arbitrary for CLI and composer/autoload.php in different paths</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 9 Jun 2012 12:02:20 +0000</created>
                <updated>Fri, 22 Jun 2012 06:12:10 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 06:12:10 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18071" author="beberlei" created="Sat, 9 Jun 2012 12:45:32 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-365&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/365&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/365&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18130" author="guilhermeblanco" created="Fri, 22 Jun 2012 06:12:10 +0000"  >&lt;p&gt;PR was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1849] Paginator: The Parameter Types are not set in Function cloneQuery</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1849</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The Parameter-Types are not set in the Function cloneQuery in the Paginator-Class (Doctrine/ORM/Tools/Pagination/Paginator.php line 172):&lt;/p&gt;

&lt;p&gt;$cloneQuery-&amp;gt;setParameters($query-&amp;gt;getParameters());&lt;/p&gt;

&lt;p&gt;But it should be:&lt;/p&gt;

&lt;p&gt;$cloneQuery-&amp;gt;setParameters($query-&amp;gt;getParameters(), $query-&amp;gt;getParameterTypes());&lt;/p&gt;</description>
                <environment></environment>
            <key id="13745">DDC-1849</key>
            <summary>Paginator: The Parameter Types are not set in Function cloneQuery</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="alineblaser@hotmail.com">Aline Blaser</reporter>
                        <labels>
                    </labels>
                <created>Thu, 31 May 2012 12:57:58 +0000</created>
                <updated>Fri, 22 Jun 2012 06:07:47 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 06:07:47 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18076" author="ocramius" created="Sun, 10 Jun 2012 23:49:37 +0000"  >&lt;p&gt;Could you try to use latest master? This should already be solved as now parameters are instances of `Doctrine\ORM\Query\Parameter`, which also means that they enclose their type &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="18127" author="guilhermeblanco" created="Fri, 22 Jun 2012 06:07:47 +0000"  >&lt;p&gt;Fixed in master&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1873] [GH-373] Grammar fix for composer.json file</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1873</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 bschaeffer:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13777">DDC-1873</key>
            <summary>[GH-373] Grammar fix for composer.json file</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Jun 2012 14:44:05 +0000</created>
                <updated>Fri, 22 Jun 2012 05:55:25 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:55:25 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18082" author="beberlei" created="Wed, 13 Jun 2012 14:24:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-373&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/373&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/373&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18126" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:55:25 +0000"  >&lt;p&gt;PR was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1869] [GH-371] set permissions as expected by composer.phar update</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1869</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 robocoder:&lt;/p&gt;

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

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

&lt;p&gt;I&apos;m guessing the executable permissions were removed from these files recently.&lt;/p&gt;

&lt;p&gt;composer.json copies the following scripts (i.e., &quot;bin&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;bin/doctrine&amp;quot;, &amp;quot;bin/doctrine.php&amp;quot;&amp;#93;&lt;/span&gt;, ) to the vendor/bin folder.&lt;/p&gt;

&lt;p&gt;When running composer.phar update, and doctrine/orm is to be updated, composer fails because these two scripts have been chmod&apos;d to be executable.&lt;/p&gt;


</description>
                <environment></environment>
            <key id="13772">DDC-1869</key>
            <summary>[GH-371] set permissions as expected by composer.phar update</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Jun 2012 15:45:31 +0000</created>
                <updated>Fri, 22 Jun 2012 05:54:25 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:54:25 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18084" author="beberlei" created="Fri, 15 Jun 2012 05:40:46 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-371&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/371&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/371&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18124" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:54:25 +0000"  >&lt;p&gt;PR was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1868] [GH-370] Some PHP-CS fixes</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1868</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 Ph3nol:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13771">DDC-1868</key>
            <summary>[GH-370] Some PHP-CS fixes</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 11 Jun 2012 10:38:44 +0000</created>
                <updated>Fri, 22 Jun 2012 05:54:06 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:54:06 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18085" author="beberlei" created="Fri, 15 Jun 2012 05:40:55 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-370&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/370&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/370&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18123" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:54:06 +0000"  >&lt;p&gt;PR was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1855] [GH-363] Entities generator: constructor&apos;s template docblock</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1855</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 gajdaw:&lt;/p&gt;

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

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

&lt;p&gt;Missing constructor&apos;s docblock. &lt;/p&gt;</description>
                <environment></environment>
            <key id="13756">DDC-1855</key>
            <summary>[GH-363] Entities generator: constructor&apos;s template docblock</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Jun 2012 06:51:25 +0000</created>
                <updated>Fri, 22 Jun 2012 05:53:47 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:53:47 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18086" author="beberlei" created="Fri, 15 Jun 2012 05:42:22 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-363&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/363&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/363&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18122" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:53:47 +0000"  >&lt;p&gt;PR was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1854] [GH-362] Correct some mistakes (tabs &amp; trailing spaces)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1854</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 odolbeau:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13755">DDC-1854</key>
            <summary>[GH-362] Correct some mistakes (tabs &amp; trailing spaces)</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Jun 2012 13:53:42 +0000</created>
                <updated>Fri, 22 Jun 2012 05:53:16 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:53:16 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18087" author="beberlei" created="Fri, 15 Jun 2012 05:43:22 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-362&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/362&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/362&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18121" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:53:16 +0000"  >&lt;p&gt;PR was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

</description>
                <environment></environment>
            <key id="13768">DDC-1865</key>
            <summary>[GH-368] Join poc</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 10 Jun 2012 20:18:20 +0000</created>
                <updated>Fri, 22 Jun 2012 05:52:45 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:52:45 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18095" author="beberlei" created="Mon, 18 Jun 2012 15:18:20 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-368&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/368&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/368&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18120" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:52:45 +0000"  >&lt;p&gt;PR was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

</description>
                <environment></environment>
            <key id="13789">DDC-1883</key>
            <summary>[GH-380] remove svn markers</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Jun 2012 18:35:02 +0000</created>
                <updated>Fri, 22 Jun 2012 05:52:16 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:52:16 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18100" author="beberlei" created="Tue, 19 Jun 2012 18:45:50 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-380&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/380&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/380&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18119" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:52:16 +0000"  >&lt;p&gt;PR was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

</description>
                <environment></environment>
            <key id="13786">DDC-1881</key>
            <summary>[GH-379] Fix join-poc merge</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Jun 2012 18:56:20 +0000</created>
                <updated>Fri, 22 Jun 2012 05:51:02 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:51:02 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18097" author="beberlei" created="Mon, 18 Jun 2012 19:17:51 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-379&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/379&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/379&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18118" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:51:02 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1876] [GH-375] Allow passing any callable instead of only closures</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1876</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 lstrojny:&lt;/p&gt;

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

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

&lt;p&gt;This patch allows passing any callable to transactional(), not just closures.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13781">DDC-1876</key>
            <summary>[GH-375] Allow passing any callable instead of only closures</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 16 Jun 2012 11:21:26 +0000</created>
                <updated>Fri, 22 Jun 2012 05:50:31 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:50:31 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18092" author="beberlei" created="Mon, 18 Jun 2012 14:25:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-375&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/375&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/375&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18117" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:50:31 +0000"  >&lt;p&gt;PR was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1866] [GH-369] Show the advice only when relevant.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1866</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 greg0ire:&lt;/p&gt;

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

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

&lt;p&gt;This is indeed a good advice, but people who&lt;br/&gt;
already have implemented __toString() might&lt;br/&gt;
get confused about it.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13769">DDC-1866</key>
            <summary>[GH-369] Show the advice only when relevant.</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 10 Jun 2012 20:59:49 +0000</created>
                <updated>Fri, 22 Jun 2012 05:50:06 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:50:06 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18093" author="beberlei" created="Mon, 18 Jun 2012 14:26:09 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-369&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/369&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/369&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18116" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:50:06 +0000"  >&lt;p&gt;PR was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1878] [GH-377] Fix the documentation link in the README</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1878</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 Dinduks:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13783">DDC-1878</key>
            <summary>[GH-377] Fix the documentation link in the README</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Jun 2012 15:10:00 +0000</created>
                <updated>Fri, 22 Jun 2012 05:49:47 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:49:47 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18094" author="beberlei" created="Mon, 18 Jun 2012 15:12:39 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-377&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/377&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/377&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18115" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:49:47 +0000"  >&lt;p&gt;PR was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1880] Named Queries not processed correctly in XML</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1880</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When attempting to define named queries in XML mapping, they are not correctly passed through to the ClassMetadataInfo instance.&lt;/p&gt;

&lt;p&gt;This is because the attribute syntax (&lt;tt&gt;$xmlRoot&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;named-queries&amp;#39;&amp;#93;&lt;/span&gt;&lt;/tt&gt;) is used instead of the child element syntax ({{$xmlRoot-&amp;gt;&lt;/p&gt;
{&apos;named-queries&apos;}
&lt;p&gt;}}).&lt;/p&gt;</description>
                <environment></environment>
            <key id="13785">DDC-1880</key>
            <summary>Named Queries not processed correctly in XML</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="auswebdev">Josiah</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Jun 2012 16:31:28 +0000</created>
                <updated>Fri, 22 Jun 2012 05:49:00 +0000</updated>
                    <resolved>Fri, 22 Jun 2012 05:49:00 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18096" author="auswebdev" created="Mon, 18 Jun 2012 16:47:05 +0000"  >&lt;p&gt;Added a PR for this issue &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/378&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/378&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18114" author="guilhermeblanco" created="Fri, 22 Jun 2012 05:49:00 +0000"  >&lt;p&gt;As per GitHub resolution&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1497] Orm:generate-entities generates incorrect code when it has multiple relations with the same entity</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1497</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Using the same entities, as in the &lt;a href=&quot;http://www.doctrine-project.org/docs/orm/2.0/en/tutorials/getting-started-xml-edition.html#metadata-mappings-for-our-entities&quot; class=&quot;external-link&quot;&gt;cookbook&lt;/a&gt;, when you generate the entities, the add* methods on User, or generally, on the inverse for many type relations are incorrect, and overwrite each other, so you end up with only one add method, that is incorrectly named.  &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;Rework\Model\User:
    type: entity
    table: user
    id:
        id:
            type: integer
            generator:
                strategy: AUTO
    fields:
        name:
            type: string
    oneToMany:
        reportedBugs:
            targetEntity: Bug
            mappedBy: reporter
        assignedBugs:
            targetEntity: Bug
            mappedBy: engineer

Rework\Model\Bug:
    type: entity
    table: bug
    id:
        id:
            type: integer
            generator:
                strategy: AUTO
    fields:
        name:
            type: string
    manyToOne:
        reporter:
            targetEntity: User
            inversedBy: reportedBugs
        engineer:
            targetEntity: User
            inversedBy: assignedBugs
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;The generated method on User.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;    /**
     * Add reportedBugs
     *
     * @param Rework\Model\Bug $reportedBugs
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function addBug(\Rework\Model\Bug $reportedBugs)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;reportedBugs[] = $reportedBugs;
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;What I expected:&lt;br/&gt;
The method should be named addReportedBugs, eg. it should be named after the relation, and not the entity&apos;s classname.&lt;br/&gt;
There should also be two add* methods, instead there is only one.&lt;/p&gt;</description>
                <environment>ArchLinux, PHP 5.3.8</environment>
            <key id="13199">DDC-1497</key>
            <summary>Orm:generate-entities generates incorrect code when it has multiple relations with the same 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="wishcow">K&#233;ri Norbert</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Nov 2011 15:27:55 +0000</created>
                <updated>Sun, 27 May 2012 18:31:27 +0000</updated>
                    <resolved>Sun, 27 May 2012 18:31:27 +0000</resolved>
                            <version>2.1.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>2</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="17296" author="venimus" created="Tue, 17 Jan 2012 17:47:50 +0000"  >&lt;p&gt;I also reproduce that with a manyToMany relations&lt;/p&gt;

&lt;p&gt;The misbehavior I found to be in the EntityGenerator.php on lines 706-712&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; ($type == &lt;span class=&quot;code-quote&quot;&gt;&quot;add&quot;&lt;/span&gt;) {
            $addMethod = explode(&lt;span class=&quot;code-quote&quot;&gt;&quot;\\&quot;&lt;/span&gt;, $typeHint);
            $addMethod = end($addMethod);
            $methodName = $type . $addMethod;
        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
            $methodName = $type . Inflector::classify($fieldName);
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;p&gt;the whole block should be simply&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; $methodName = $type . Inflector::classify($fieldName); &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="17701" author="schyzophrenic" created="Sat, 31 Mar 2012 16:20:11 +0000"  >&lt;p&gt;I have also reproduced the very same issue on Doctrine 2.1.4 on a Win7 environment (using Symfony2, but it is not really relevant here).&lt;br/&gt;
While waiting for a fix, I will use the provided workaround.&lt;/p&gt;</comment>
                    <comment id="18019" author="beberlei" created="Sun, 27 May 2012 18:31:27 +0000"  >&lt;p&gt;Fixed but merged only into master, since this is also a BC break.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1757] DQL exception when building query with multiple from and join parts</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1757</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Query builder creates bad DQL if multiple FROM and JOIN parts are used.&lt;/p&gt;

&lt;p&gt;As example such query builder 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;$qb-&amp;gt;from(&apos;A&apos;, &apos;a&apos;)
  -&amp;gt;from(&apos;B&apos;, &apos;b&apos;)
  -&amp;gt;join(&apos;b.c&apos;, &apos;c&apos;)
  -&amp;gt;join(&apos;c.d&apos;, &apos;d&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;will generate 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;...
  FROM A a 
    INNER JOIN c.d d, 
  B b 
    INNER JOIN b.c c
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;but should generate this instead&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;...
  FROM A a,
  B b 
    INNER JOIN b.c c 
    INNER JOIN c.d d
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The DQL parser raises exception&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;Doctrine\ORM\Query\QueryException: [Semantical Error] line 0, col 61 near &apos;.d d, B&apos;: Error: Identification Variable c used in join path expression but was not defined before.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13596">DDC-1757</key>
            <summary>DQL exception when building query with multiple from and join parts</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="gedrox">Aigars Gedroics</reporter>
                        <labels>
                    </labels>
                <created>Tue, 3 Apr 2012 12:54:07 +0000</created>
                <updated>Sun, 27 May 2012 18:02:18 +0000</updated>
                    <resolved>Sun, 27 May 2012 18:02:18 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17737" author="gedrox" created="Tue, 3 Apr 2012 12:58:01 +0000"  >&lt;p&gt;The test case attached.&lt;br/&gt;
The problem is that for the relation c.d the query builder uses the first root entity as the master which makes it to be included before the join b.c.&lt;/p&gt;</comment>
                    <comment id="17739" author="gedrox" created="Tue, 3 Apr 2012 13:14:45 +0000"  >&lt;p&gt;Dirty patch attached.&lt;/p&gt;</comment>
                    <comment id="18018" author="beberlei" created="Sun, 27 May 2012 18:02:18 +0000"  >&lt;p&gt;This was fixed through a PR some weeks ago.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11176" name="DDC1757Test.php" size="1817" author="gedrox" created="Tue, 3 Apr 2012 12:58:01 +0000" />
                    <attachment id="11177" name="patch-1757.patch" size="2291" author="gedrox" created="Tue, 3 Apr 2012 13:14:44 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1784] Error on generate entities: &apos;Attribute &quot;allocationSize&quot; of @ORM\SequenceGenerator&apos;</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1784</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When I generated my entities on version 2.2.2 through &quot;orm:convert-mapping&quot;, the sequence has a value &apos; allocationSize=&quot;1&quot;, initialValue=&quot;1&quot; &apos; with quotes. &lt;/p&gt;

&lt;p&gt;So I received an error: &lt;/p&gt;

&lt;p&gt;Attribute &quot;allocationSize&quot; of @ORM\SequenceGenerator declared on property entities\Test::$id expects a&lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/thumbs_down.gif&quot; height=&quot;19&quot; width=&quot;19&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; integer, but got string. &lt;/p&gt;

&lt;p&gt;To fix, I removed the quotes. is It a bug?&lt;/p&gt;

&lt;p&gt;Part of entity generated:&lt;/p&gt;

&lt;p&gt;    /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@var integer $id&lt;br/&gt;
     *&lt;/li&gt;
	&lt;li&gt;@ORM\Column(name=&quot;id&quot;, type=&quot;integer&quot;, precision=0, scale=0, nullable=false, unique=false)&lt;/li&gt;
	&lt;li&gt;@ORM\Id&lt;/li&gt;
	&lt;li&gt;@ORM\GeneratedValue(strategy=&quot;SEQUENCE&quot;)&lt;/li&gt;
	&lt;li&gt;@ORM\SequenceGenerator(sequenceName=&quot;test_id_seq&quot;, allocationSize=&quot;1&quot;, initialValue=&quot;1&quot;) /* SEE QUOTES ON allocationSize=&quot;1&quot;, initialValue=&quot;1&quot; */&lt;br/&gt;
     */&lt;br/&gt;
    private $id;&lt;/li&gt;
&lt;/ul&gt;

</description>
                <environment></environment>
            <key id="13641">DDC-1784</key>
            <summary>Error on generate entities: &apos;Attribute &quot;allocationSize&quot; of @ORM\SequenceGenerator&apos;</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="augustoximenes">Augusto Ximenes de Souza</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Apr 2012 02:45:43 +0000</created>
                <updated>Sun, 27 May 2012 17:14:22 +0000</updated>
                    <resolved>Fri, 20 Apr 2012 01:40:47 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17862" author="augustoximenes" created="Wed, 18 Apr 2012 02:55:18 +0000"  >&lt;p&gt;I think the problem is on the line 1037 to 1042 of Class Doctrine \ ORM \ Tools \ EntityGenerator:&lt;/p&gt;

&lt;p&gt;                    if (isset($metadata-&amp;gt;sequenceGeneratorDefinition&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;allocationSize&amp;#39;&amp;#93;&lt;/span&gt;)) &lt;/p&gt;
{
                        $sequenceGenerator[] = &apos;allocationSize=&quot;&apos; . $metadata-&amp;gt;sequenceGeneratorDefinition[&apos;allocationSize&apos;] . &apos;&quot;&apos;;
                    }

&lt;p&gt;                    if (isset($metadata-&amp;gt;sequenceGeneratorDefinition&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;initialValue&amp;#39;&amp;#93;&lt;/span&gt;)) &lt;/p&gt;
{
                        $sequenceGenerator[] = &apos;initialValue=&quot;&apos; . $metadata-&amp;gt;sequenceGeneratorDefinition[&apos;initialValue&apos;] . &apos;&quot;&apos;;
                    }

&lt;p&gt;Replace to:&lt;/p&gt;

&lt;p&gt;                    if (isset($metadata-&amp;gt;sequenceGeneratorDefinition&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;allocationSize&amp;#39;&amp;#93;&lt;/span&gt;)) &lt;/p&gt;
{
                        $sequenceGenerator[] = &apos;allocationSize=&apos; . $metadata-&amp;gt;sequenceGeneratorDefinition[&apos;allocationSize&apos;];
                    }

&lt;p&gt;                    if (isset($metadata-&amp;gt;sequenceGeneratorDefinition&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;initialValue&amp;#39;&amp;#93;&lt;/span&gt;)) &lt;/p&gt;
{
                        $sequenceGenerator[] = &apos;initialValue=&apos; . $metadata-&amp;gt;sequenceGeneratorDefinition[&apos;initialValue&apos;];
                    }</comment>
                    <comment id="17873" author="fabio.bat.silva" created="Fri, 20 Apr 2012 01:40:46 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/d5d47222c1dc5ea97ebd8f4c68834fbe4abeb238&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/d5d47222c1dc5ea97ebd8f4c68834fbe4abeb238&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18016" author="beberlei" created="Sun, 27 May 2012 17:14:22 +0000"  >&lt;p&gt;Merged into 2.2&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1798] [GH-342] Fix identifier generator strategy for composite identifier</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1798</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 jeanmonod:&lt;/p&gt;

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

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

&lt;p&gt;When using the ConvertMappingCommand on a schema that contain a table with a composite key, we got the exception:&lt;/p&gt;

&lt;p&gt;    Single id is not allowed on composite primary key in entity CollectionFields&lt;/p&gt;

&lt;p&gt;This can be fix by setting the identifier strategy to NONE for composite identifier fields&lt;/p&gt;</description>
                <environment></environment>
            <key id="13661">DDC-1798</key>
            <summary>[GH-342] Fix identifier generator strategy for composite identifier</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="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>Thu, 26 Apr 2012 19:11:21 +0000</created>
                <updated>Sun, 27 May 2012 16:47:15 +0000</updated>
                    <resolved>Sun, 27 May 2012 16:47:15 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18010" author="beberlei" created="Sun, 27 May 2012 16:47:15 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1685] Using the CountWalker on an entity with ID on OneToOne field fails</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1685</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using the CountWalker on an entity which has @Id not on a column, but on a @OneToOne property, a fatal error occurs:&lt;/p&gt;

&lt;p&gt;Notice: Undefined index: person in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Mapping\ClassMetadataInfo.php line 2301&lt;/p&gt;

&lt;p&gt;In this case I&apos;m using the Paginator by KnpLabs. Here is the trace:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Trace&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;Notice: Undefined index: person in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Mapping\ClassMetadataInfo.php line 2301
500 Internal Server Error - ErrorException

Stack Trace
in D:\workspace9\roompot\vendor\symfony\src\Symfony\Component\HttpKernel\Debug\ErrorHandler.php at line 65   
        }
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (error_reporting() &amp;amp; $level &amp;amp;&amp;amp; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;level &amp;amp; $level) {
            &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \ErrorException(sprintf(&apos;%s: %s in %s line %d&apos;, isset($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;levels[$level]) ? $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;levels[$level] : $level, $message, $file, $line));
        }
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
at ErrorHandler -&amp;gt;handle (&apos;8&apos;, &apos;Undefined index: person&apos;, &apos;D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Mapping\ClassMetadataInfo.php&apos;, &apos;2301&apos;, array(&apos;field&apos; =&amp;gt; &apos;person&apos;, &apos;platform&apos; =&amp;gt; object(MySqlPlatform))) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Mapping\ClassMetadataInfo.php at line 2301    
at ClassMetadataInfo -&amp;gt;getQuotedColumnName (&apos;person&apos;, object(MySqlPlatform)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php at line 548    
at SqlWalker -&amp;gt;walkPathExpression (object(PathExpression)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\AST\PathExpression.php at line 56    
at PathExpression -&amp;gt;dispatch (object(SqlWalker)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php at line 2126    
at SqlWalker -&amp;gt;walkArithmeticPrimary (object(PathExpression)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php at line 2105    
at SqlWalker -&amp;gt;walkArithmeticFactor (object(PathExpression)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php at line 2084    
at SqlWalker -&amp;gt;walkArithmeticTerm (object(PathExpression)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php at line 2061    
at SqlWalker -&amp;gt;walkSimpleArithmeticExpression (object(PathExpression)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php at line 1408    
at SqlWalker -&amp;gt;walkAggregateExpression (object(AggregateExpression)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\AST\AggregateExpression.php at line 50    
at AggregateExpression -&amp;gt;dispatch (object(SqlWalker)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php at line 1139    
at SqlWalker -&amp;gt;walkSelectExpression (object(SelectExpression)) 
at array_map (array(object(SqlWalker), &apos;walkSelectExpression&apos;), array(object(SelectExpression))) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php at line 596    
at SqlWalker -&amp;gt;walkSelectClause (object(SelectClause)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php at line 417    
at SqlWalker -&amp;gt;walkSelectStatement (object(SelectStatement)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\Exec\SingleSelectExecutor.php at line 38    
at SingleSelectExecutor -&amp;gt;__construct (object(SelectStatement), object(SqlWalker)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php at line 192    
at SqlWalker -&amp;gt;getExecutor (object(SelectStatement)) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query\Parser.php at line 325    
at Parser -&amp;gt;parse () 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query.php at line 230    
at Query -&amp;gt;_parse () 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\Query.php at line 241    
at Query -&amp;gt;_doExecute () 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\AbstractQuery.php at line 643    
at AbstractQuery -&amp;gt;execute (array(), &apos;2&apos;) 
in D:\workspace9\roompot\vendor\doctrine\lib\Doctrine\ORM\AbstractQuery.php at line 468    
at AbstractQuery -&amp;gt;getResult (&apos;2&apos;) 
in D:\workspace9\roompot\vendor\knp-components\src\Knp\Component\Pager\Event\Subscriber\Paginate\Doctrine\ORM\QuerySubscriber.php at line 45    
at QuerySubscriber -&amp;gt;items (object(ItemsEvent)) 
at call_user_func (array(object(QuerySubscriber), &apos;items&apos;), object(ItemsEvent)) 
in D:\workspace9\roompot\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\Debug\TraceableEventDispatcher.php at line 124    
at TraceableEventDispatcher -&amp;gt;doDispatch (array(array(object(QueryBuilderSubscriber), &apos;items&apos;), array(object(QueryBuilderSubscriber), &apos;items&apos;), array(object(QuerySubscriber), &apos;items&apos;), array(object(QuerySubscriber), &apos;items&apos;), array(object(QuerySubscriber), &apos;items&apos;), array(object(QuerySubscriber), &apos;items&apos;), array(object(CollectionSubscriber), &apos;items&apos;), array(object(PropelQuerySubscriber), &apos;items&apos;), array(object(SolariumQuerySubscriber), &apos;items&apos;), array(object(ArraySubscriber), &apos;items&apos;)), &apos;knp_pager.items&apos;, object(ItemsEvent)) 
in D:\workspace9\roompot\app\cache\sitwst05_roompot\classes.php at line 3996    
at EventDispatcher -&amp;gt;dispatch (&apos;knp_pager.items&apos;, object(ItemsEvent)) 
in D:\workspace9\roompot\app\cache\sitwst05_roompot\classes.php at line 5125    
at ContainerAwareEventDispatcher -&amp;gt;dispatch (&apos;knp_pager.items&apos;, object(ItemsEvent)) 
in D:\workspace9\roompot\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\Debug\TraceableEventDispatcher.php at line 72    
at TraceableEventDispatcher -&amp;gt;dispatch (&apos;knp_pager.items&apos;, object(ItemsEvent)) 
in D:\workspace9\roompot\vendor\knp-components\src\Knp\Component\Pager\Paginator.php at line 76    
at Paginator -&amp;gt;paginate (object(Query), &apos;1&apos;, &apos;25&apos;) 
in D:\workspace9\roompot\src\Samson\TRSBundle\Controller\RegistrarController.php at line 34    
at RegistrarController -&amp;gt;indexAction () 
at call_user_func_array (array(object(RegistrarController), &apos;indexAction&apos;), array()) 
in D:\workspace9\roompot\app\cache\sitwst05_roompot\classes.php at line 4241    
at HttpKernel -&amp;gt;handleRaw (object(Request), &apos;1&apos;) 
in D:\workspace9\roompot\app\cache\sitwst05_roompot\classes.php at line 4205    
at HttpKernel -&amp;gt;handle (object(Request), &apos;1&apos;, &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;) 
in D:\workspace9\roompot\app\cache\sitwst05_roompot\classes.php at line 5192    
at HttpKernel -&amp;gt;handle (object(Request), &apos;1&apos;, &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;) 
in D:\workspace9\roompot\app\bootstrap.php.cache at line 564    
at Kernel -&amp;gt;handle (object(Request)) 
in D:\workspace9\roompot\web\app_dev.php at line 30    
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And the entity:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Entity&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&amp;lt;?php

namespace Samson\TRSBundle\Entity;

use Samson\AddressBookBundle\Entity\Person;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 */
class Registrar
{
    /**
     * @ORM\Id
     * @ORM\OneToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Samson\AddressBookBundle\Entity\Person&quot;&lt;/span&gt;, cascade={&lt;span class=&quot;code-quote&quot;&gt;&quot;persist&quot;&lt;/span&gt;})
     * @ORM\JoinColumn(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; $person;

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getId()
    {
        &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;person-&amp;gt;getId();
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getPerson()
    {
        &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;person;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setPerson($person)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;person = $person;
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>any</environment>
            <key id="13501">DDC-1685</key>
            <summary>Using the CountWalker on an entity with ID on OneToOne field fails</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="burgov">Bart van den Burg</reporter>
                        <labels>
                    </labels>
                <created>Tue, 6 Mar 2012 14:17:20 +0000</created>
                <updated>Sun, 27 May 2012 16:34:04 +0000</updated>
                    <resolved>Sun, 27 May 2012 16:34:04 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18007" author="beberlei" created="Sun, 27 May 2012 15:38:32 +0000"  >&lt;p&gt;This is a bug with the KnpPager. It doent handle this siutation and breaks the DQL =&amp;gt; SQL AST. Our own pager throws another exception here, solving that within the scope of that ticket now.&lt;/p&gt;</comment>
                    <comment id="18009" author="beberlei" created="Sun, 27 May 2012 16:34:04 +0000"  >&lt;p&gt;Fixed in master.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1823] Error with IN and UPPER in the same line</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1823</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have a problem making a DQL query&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;SELECT c.id, c.name&lt;br/&gt;
FROM BrandBundle:Brand c&lt;br/&gt;
WHERE UPPER(c.name) IN (:values)&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;:values is an array of possible names of brands.&lt;/p&gt;

&lt;p&gt;The error shown is&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Syntax Error&amp;#93;&lt;/span&gt; line 0, col 109: Error: Expected Doctrine\ORM\Query\Lexer::T_IN, got &apos;(&apos;&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
            <key id="13705">DDC-1823</key>
            <summary>Error with IN and UPPER in the same line</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="patxi1980">Aitor Suso</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 May 2012 09:49:08 +0000</created>
                <updated>Sun, 27 May 2012 14:47:54 +0000</updated>
                    <resolved>Sun, 27 May 2012 14:47:54 +0000</resolved>
                            <version>2.1.6</version>
                                <fixVersion>2.3</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18003" author="guilhermeblanco" created="Sun, 27 May 2012 14:47:54 +0000"  >&lt;p&gt;This is already fixed in master for a long time and should be available in 2.3, since it requires major changes in DQL.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1791] Paginator query doesn&apos;t work using Oracle</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1791</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Ive build a dql query using the queryBuilder and I&apos;ve passed the queryBuilder to the Paginator object.  The sql query failed.&lt;/p&gt;

&lt;p&gt;here is the sql query that get executed:&lt;/p&gt;

&lt;p&gt;SELECT a.* &lt;br/&gt;
FROM &lt;br/&gt;
(&lt;br/&gt;
  SELECT DISTINCT ID0 &lt;br/&gt;
  FROM &lt;br/&gt;
  (&lt;br/&gt;
    SELECT &lt;br/&gt;
      f0_.id AS ID0, f0_.title AS TITLE1, &lt;br/&gt;
      f1_.id AS ID2, &lt;br/&gt;
      f2_.id AS ID3, f2_.first_name AS FIRST_NAME4, f2_.middle_name AS MIDDLE_NAME5, f2_.last_name AS LAST_NAME6, f2_.phone AS PHONE7, f2_.url AS URL8, &lt;br/&gt;
      f2_.email AS EMAIL9, f2_.profile AS PROFILE10, f2_.created_date AS CREATED_DATE11, f2_.last_updated_date AS LAST_UPDATED_DATE12, &lt;br/&gt;
      f2_.object_status_id AS OBJECT_STATUS_ID13, f2_.published_date AS PUBLISHED_DATE14, f2_.publishing_status_id AS PUBLISHING_STATUS_ID15, &lt;br/&gt;
      f3_.id AS ID16, f3_.title AS TITLE17, f3_.start_date AS START_DATE18, f3_.end_date AS END_DATE19, &lt;br/&gt;
      f4_.id AS ID20, f4_.name AS NAME21, &lt;br/&gt;
      f5_.id AS ID22, &lt;br/&gt;
      c6_.id AS ID23, &lt;br/&gt;
      d7_.id AS ID24 &lt;br/&gt;
    FROM fo_deal f0_ &lt;br/&gt;
    INNER JOIN fo_deal_role f1_ ON f0_.id = f1_.deal_id &lt;br/&gt;
    INNER JOIN fo_people f2_ ON f1_.people_id = f2_.id &lt;br/&gt;
    INNER JOIN fo_position f3_ ON f2_.id = f3_.people_id &lt;br/&gt;
    INNER JOIN fo_company f4_ ON f3_.company_id = f4_.id &lt;br/&gt;
    LEFT JOIN fo_people_asset f5_ ON f2_.id = f5_.people_id &lt;br/&gt;
    LEFT JOIN co_asset c6_ ON f5_.asset_id = c6_.id &lt;br/&gt;
    LEFT JOIN ds_record d7_ ON c6_.ds_id = d7_.id &lt;br/&gt;
    WHERE f2_.object_status_id &amp;lt;&amp;gt; 3 &lt;br/&gt;
    AND f2_.publishing_status_id = 2 &lt;br/&gt;
    ORDER BY f0_.published_date DESC&lt;br/&gt;
  ) AS _dctrn_result&lt;br/&gt;
) a &lt;br/&gt;
WHERE ROWNUM &amp;lt;= 3&lt;/p&gt;

&lt;p&gt;It seems that oracle doesn&apos;t accept the AS _dctrn_result.  if I remove the AS _dctrn_result in the query, the query works and I get the proper information.&lt;/p&gt;</description>
                <environment>linux using an oracle database</environment>
            <key id="13649">DDC-1791</key>
            <summary>Paginator query doesn&apos;t work using Oracle</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="mdrolet">Marc Drolet</reporter>
                        <labels>
                    </labels>
                <created>Thu, 19 Apr 2012 15:57:55 +0000</created>
                <updated>Sun, 27 May 2012 11:25:54 +0000</updated>
                    <resolved>Sun, 27 May 2012 11:25:54 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17869" author="mdrolet" created="Thu, 19 Apr 2012 16:02:01 +0000"  >&lt;p&gt;Here is the error message sent by oracle:&lt;br/&gt;
ORA-00907: missing right parenthesis&lt;br/&gt;
00907. 00000 -  &quot;missing right parenthesis&quot;&lt;br/&gt;
*Cause:    &lt;br/&gt;
*Action:&lt;br/&gt;
Error at Line: 29 Column: 4&lt;/p&gt;


&lt;p&gt;Also, if I remove the keyword AS, and let the _dctrn_result, I get the error:&lt;br/&gt;
ORA-00911: invalid character&lt;br/&gt;
00911. 00000 -  &quot;invalid character&quot;&lt;br/&gt;
*Cause:    identifiers may not start with any ASCII character other than&lt;br/&gt;
           letters and numbers.  $#_ are also allowed after the first&lt;br/&gt;
           character.  Identifiers enclosed by doublequotes may contain&lt;br/&gt;
           any character other than a doublequote.  Alternative quotes&lt;br/&gt;
           (q&apos;#...#&apos;) cannot use spaces, tabs, or carriage returns as&lt;br/&gt;
           delimiters.  For all other contexts, consult the SQL Language&lt;br/&gt;
           Reference Manual.&lt;br/&gt;
*Action:&lt;br/&gt;
Error at Line: 29 Column: 4&lt;/p&gt;

&lt;p&gt;So, If I remove the _ from the alias it work.&lt;/p&gt;</comment>
                    <comment id="17870" author="mdrolet" created="Thu, 19 Apr 2012 16:08:41 +0000"  >&lt;p&gt;here is the fix I&apos;ve done on my local environment:&lt;/p&gt;

&lt;p&gt;ORM/Tools/Pagination/LimitSubqueryOutputWalker.php line 126&lt;/p&gt;

&lt;p&gt;I&apos;ve remove the AS _dctrn_result alias from the query.&lt;/p&gt;

&lt;p&gt;I&apos;ve grep for dctrn_result into the ORM directory and I didn&apos;t find any occurence of dctrn_result, so it&apos;s not used anywhere.&lt;/p&gt;</comment>
                    <comment id="17871" author="mdrolet" created="Thu, 19 Apr 2012 17:23:32 +0000"  >&lt;p&gt;I would also point out the the result that I get is not correct when we use an order by clause.&lt;/p&gt;

&lt;p&gt;To get the correct result when an order by clause is provided, I need to add another level of query. &lt;br/&gt;
here is the query that need to be executed to get the result in the proper order by clause.&lt;/p&gt;

&lt;p&gt;SELECT a.*&lt;br/&gt;
FROM &lt;br/&gt;
(&lt;br/&gt;
  select b.*, rownum as rn&lt;br/&gt;
  from&lt;br/&gt;
  (&lt;br/&gt;
    SELECT DISTINCT ID0&lt;br/&gt;
    FROM &lt;br/&gt;
    (&lt;br/&gt;
      SELECT &lt;br/&gt;
        f0_.id AS ID0, f0_.title AS TITLE1, &lt;br/&gt;
        f1_.id AS ID2, &lt;br/&gt;
        f2_.id AS ID3, f2_.first_name AS FIRST_NAME4, f2_.middle_name AS MIDDLE_NAME5, f2_.last_name AS LAST_NAME6, f2_.phone AS PHONE7, f2_.url AS URL8, &lt;br/&gt;
        f2_.email AS EMAIL9, f2_.profile AS PROFILE10, f2_.created_date AS CREATED_DATE11, f2_.last_updated_date AS LAST_UPDATED_DATE12, &lt;br/&gt;
        f2_.object_status_id AS OBJECT_STATUS_ID13, f2_.published_date AS PUBLISHED_DATE14, f2_.publishing_status_id AS PUBLISHING_STATUS_ID15, &lt;br/&gt;
        f3_.id AS ID16, f3_.title AS TITLE17, f3_.start_date AS START_DATE18, f3_.end_date AS END_DATE19, &lt;br/&gt;
        f4_.id AS ID20, f4_.name AS NAME21, &lt;br/&gt;
        f5_.id AS ID22, &lt;br/&gt;
        c6_.id AS ID23, &lt;br/&gt;
        d7_.id AS ID24 &lt;br/&gt;
      FROM fo_deal f0_ &lt;br/&gt;
      INNER JOIN fo_deal_role f1_ ON f0_.id = f1_.deal_id &lt;br/&gt;
      INNER JOIN fo_people f2_ ON f1_.people_id = f2_.id &lt;br/&gt;
      INNER JOIN fo_position f3_ ON f2_.id = f3_.people_id &lt;br/&gt;
      INNER JOIN fo_company f4_ ON f3_.company_id = f4_.id &lt;br/&gt;
      LEFT JOIN fo_people_asset f5_ ON f2_.id = f5_.people_id &lt;br/&gt;
      LEFT JOIN co_asset c6_ ON f5_.asset_id = c6_.id &lt;br/&gt;
      LEFT JOIN ds_record d7_ ON c6_.ds_id = d7_.id &lt;br/&gt;
      WHERE f2_.object_status_id &amp;lt;&amp;gt; 3 &lt;br/&gt;
      AND f2_.publishing_status_id = 2 &lt;br/&gt;
      ORDER BY f0_.deal_date DESC, f0_.published_date DESC&lt;br/&gt;
    ) dctrn_result&lt;br/&gt;
  ) b&lt;br/&gt;
) a &lt;br/&gt;
WHERE a.rn &amp;lt;= 3&lt;/p&gt;</comment>
                    <comment id="17872" author="mdrolet" created="Thu, 19 Apr 2012 17:53:09 +0000"  >&lt;p&gt;I&apos;ve fix the limit order by issue (for oracle only)&lt;/p&gt;

&lt;p&gt;here is the change I&apos;ve made to the file: ORM/Tools/Pagination/LimitSubqueryOutputWalker.php&lt;br/&gt;
method: walkSelectStatement&lt;br/&gt;
starting at lime 129.&lt;/p&gt;


&lt;p&gt;I&apos;ve replace this code:&lt;br/&gt;
$sql = $this-&amp;gt;platform-&amp;gt;modifyLimitQuery(&lt;br/&gt;
            $sql, $this-&amp;gt;maxResults, $this-&amp;gt;firstResult&lt;br/&gt;
        );&lt;/p&gt;

&lt;p&gt;for this one:&lt;br/&gt;
if ($this-&amp;gt;firstResult &amp;gt; 0)&lt;/p&gt;
        {
            $sql = &apos;SELECT * FROM (
                        SELECT a.*, rownum AS doctrine_rownum
                        FROM (&apos; . $sql . &apos;) a
                        WHERE a.rn &amp;gt;= &apos; . ($this-&amp;gt;firstResult + 1) . &apos;
                    )
                    WHERE doctrine_rownum &amp;gt;= &apos; . $this-&amp;gt;maxResults;
        }
&lt;p&gt;        else&lt;/p&gt;
        {
            $sql = &apos;SELECT a.* FROM (&apos; . $sql . &apos;) a WHERE a.rn &amp;lt;= &apos; . $this-&amp;gt;maxResults;
        }</comment>
                    <comment id="17882" author="mdrolet" created="Mon, 23 Apr 2012 14:52:06 +0000"  >&lt;p&gt;The countOutputWalker also need to be modified.&lt;/p&gt;

&lt;p&gt;file: Doctrine/ORM/Tools/Pagination/CountOutputWalker.php&lt;br/&gt;
method: walkSelectStatement&lt;/p&gt;

&lt;p&gt;for oracle it doesn&apos;t work:&lt;br/&gt;
return sprintf(&apos;SELECT %s AS _dctrn_count FROM (SELECT DISTINCT %s FROM (%s) AS _dctrn_result) AS _dctrn_table&apos;,&lt;/p&gt;

&lt;p&gt;need to be changed for:&lt;br/&gt;
return sprintf(&apos;SELECT %s AS DCTRN_COUNT FROM (SELECT DISTINCT %s FROM (%s) DCTRN_RESULT) DCTRN_TABLE&apos;,&lt;/p&gt;

&lt;p&gt;I want to point out the I&apos;ve change the alias to UPPER CASE, cause oracle return the array result with field names in upper case.&lt;br/&gt;
This affect the count method of the file Doctrine/ORM/Tools/Pagination/Paginator.php  that need to be modified.&lt;/p&gt;

&lt;p&gt;file: Doctrine/ORM/Tools/Pagination/Paginator.php&lt;br/&gt;
method: count&lt;br/&gt;
line: 131   change $rsm-&amp;gt;addScalarResult(&apos;_dctrn_count&apos;, &apos;count&apos;); for $rsm-&amp;gt;addScalarResult(&apos;DCTRN_COUNT&apos;, &apos;count&apos;);&lt;/p&gt;</comment>
                    <comment id="17999" author="beberlei" created="Sun, 27 May 2012 11:25:54 +0000"  >&lt;p&gt;Fixed, you are not using 2.2.2 btw, this code is only in master.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1839] [GH-358] Update license for Composer</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1839</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 jalliot:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13731">DDC-1839</key>
            <summary>[GH-358] Update license for Composer</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>Sat, 26 May 2012 16:16:15 +0000</created>
                <updated>Sun, 27 May 2012 08:04:02 +0000</updated>
                    <resolved>Sun, 27 May 2012 08:04:02 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17982" author="beberlei" created="Sat, 26 May 2012 16:51:24 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-358&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/358&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/358&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1708] [GH-304] by jwage: Allow flushing of many entities by passing an array of entities.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1708</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 jwage:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13532">DDC-1708</key>
            <summary>[GH-304] by jwage: Allow flushing of many entities by passing an array of entities.</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>Thu, 15 Mar 2012 22:00:56 +0000</created>
                <updated>Wed, 23 May 2012 05:04:55 +0000</updated>
                    <resolved>Wed, 23 May 2012 05:04:55 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17627" author="beberlei" created="Thu, 22 Mar 2012 19:34:40 +0000"  >&lt;p&gt;Implemented for 2.3&lt;/p&gt;</comment>
                    <comment id="17970" author="guilhermeblanco" created="Wed, 23 May 2012 05:04:55 +0000"  >&lt;p&gt;According to GH, this issue is already fixed: &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/3aba23ea35413189b8b2fd0f2221b9882e932653&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/3aba23ea35413189b8b2fd0f2221b9882e932653&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-954] Look into deferring foreign key checks until flush finished</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-954</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;There are several timing issues that will be complicated to fix which relate to foreign key checks.&lt;/p&gt;

&lt;p&gt;If we could optionally allow people to defer the foreign key checks until flush has fully completed we could simply solve them all, maybe even across all vendors?&lt;/p&gt;</description>
                <environment></environment>
            <key id="12259">DDC-954</key>
            <summary>Look into deferring foreign key checks until flush finished</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Dec 2010 10:28:22 +0000</created>
                <updated>Wed, 23 May 2012 04:07:56 +0000</updated>
                    <resolved>Wed, 23 May 2012 04:07:56 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15054" author="beberlei" created="Wed, 29 Dec 2010 14:45:18 +0000"  >&lt;p&gt;Postgresql: &lt;a href=&quot;http://stackoverflow.com/questions/139884/how-do-i-disable-referential-integrity-in-postgres-8-2&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/139884/how-do-i-disable-referential-integrity-in-postgres-8-2&lt;/a&gt;&lt;br/&gt;
Mysql: &lt;a href=&quot;http://cristian-radulescu.ro/article/disable-foreign-key-checks-in-mysql.html&quot; class=&quot;external-link&quot;&gt;http://cristian-radulescu.ro/article/disable-foreign-key-checks-in-mysql.html&lt;/a&gt;&lt;br/&gt;
Oracle: &lt;a href=&quot;http://infolab.stanford.edu/~ullman/fcdb/oracle/or-triggers.html#deferring%20constraint%20checking&quot; class=&quot;external-link&quot;&gt;http://infolab.stanford.edu/~ullman/fcdb/oracle/or-triggers.html#deferring%20constraint%20checking&lt;/a&gt;&lt;br/&gt;
Mssql: No clue?!&lt;br/&gt;
Sqlite: no foreign key support (yet)&lt;br/&gt;
DB2: not researched (IBM should provide better DB2 support for PHP first).&lt;/p&gt;</comment>
                    <comment id="17969" author="guilhermeblanco" created="Wed, 23 May 2012 04:07:56 +0000"  >&lt;p&gt;As per &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/3e601c3a53226ce981fe82db164f297a8d605ae7&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/3e601c3a53226ce981fe82db164f297a8d605ae7&lt;/a&gt; all tests related to this issue are closed.&lt;br/&gt;
Marking this ticket as fixed on 2.3.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10002">
                <name>Dependency</name>
                                                <inwardlinks description="is required for">
                            <issuelink>
            <issuekey id="12264">DDC-959</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
            <subtask id="10949">DDC-369</subtask>
            <subtask id="12144">DDC-890</subtask>
        </subtasks>
        </item>

<item>
            <title>[DDC-369] Bulk-Delete on Self-Referencing CTI fails with FK Error</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-369</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function testDeleteAs()
    {
        $dql = &apos;DELETE Doctrine\Tests\Models\Company\CompanyEmployee AS p&apos;;
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;createQuery($dql)-&amp;gt;getResult();

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertEquals(0, count($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;createQuery(
            &apos;SELECT count(p) FROM Doctrine\Tests\Models\Company\CompanyEmployee p&apos;)-&amp;gt;getResult()));
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;fails with:&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;Doctrine\Tests\ORM\Functional\AdvancedDqlQueryTest::testDeleteAs()
Exception: [PDOException] SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`doctrine_tests`.`company_persons`, CONSTRAINT `company_persons_ibfk_1` FOREIGN KEY (`spouse_id`) REFERENCES `company_persons` (`id`))
With queries:
25. SQL: &apos;DELETE FROM company_persons WHERE (id) IN (SELECT id FROM company_persons_id_tmp)&apos; Params:
24. SQL: &apos;DELETE FROM company_employees WHERE (id) IN (SELECT id FROM company_persons_id_tmp)&apos; Params:
23. SQL: &apos;DELETE FROM company_managers WHERE (id) IN (SELECT id FROM company_persons_id_tmp)&apos; Params:
22. SQL: &apos;INSERT INTO company_persons_id_tmp (id) SELECT t0.id FROM company_employees t0 INNER JOIN company_persons c0_ ON t0.id = c0_.id LEFT JOIN company_managers c1_ ON t0.id = c1_.id&apos; Params:
21. SQL: &apos;CREATE TEMPORARY TABLE company_persons_id_tmp (id INT NOT NULL, PRIMARY KEY(id))&apos; Params:
20. SQL: &apos;INSERT INTO company_persons_friends (person_id, friend_id) VALUES (?, ?)&apos; Params: &apos;15&apos;, &apos;14&apos;
19. SQL: &apos;INSERT INTO company_persons_friends (person_id, friend_id) VALUES (?, ?)&apos; Params: &apos;15&apos;, &apos;13&apos;
18. SQL: &apos;INSERT INTO company_persons_friends (person_id, friend_id) VALUES (?, ?)&apos; Params: &apos;15&apos;, &apos;16&apos;
17. SQL: &apos;INSERT INTO company_persons_friends (person_id, friend_id) VALUES (?, ?)&apos; Params: &apos;14&apos;, &apos;15&apos;
16. SQL: &apos;INSERT INTO company_persons_friends (person_id, friend_id) VALUES (?, ?)&apos; Params: &apos;14&apos;, &apos;13&apos;
15. SQL: &apos;INSERT INTO company_persons_friends (person_id, friend_id) VALUES (?, ?)&apos; Params: &apos;13&apos;, &apos;15&apos;
14. SQL: &apos;INSERT INTO company_persons_friends (person_id, friend_id) VALUES (?, ?)&apos; Params: &apos;13&apos;, &apos;14&apos;
13. SQL: &apos;INSERT INTO company_persons_friends (person_id, friend_id) VALUES (?, ?)&apos; Params: &apos;16&apos;, &apos;15&apos;
12. SQL: &apos;UPDATE company_persons SET spouse_id = ? WHERE id = ?&apos; Params: &apos;13&apos;, &apos;14&apos;
11. SQL: &apos;UPDATE company_persons SET spouse_id = ? WHERE id = ?&apos; Params: &apos;14&apos;, &apos;13&apos;
10. SQL: &apos;INSERT INTO company_employees (id, salary, department) VALUES (?, ?, ?)&apos; Params: &apos;16&apos;, &apos;100000&apos;, &apos;IT&apos;
9. SQL: &apos;INSERT INTO company_managers (id, title, car_id) VALUES (?, ?, ?)&apos; Params: &apos;16&apos;, &apos;Foo&apos;, &apos;4&apos;
8. SQL: &apos;INSERT INTO company_persons (name, spouse_id, discr) VALUES (?, ?, ?)&apos; Params: &apos;Roman B.&apos;, &apos;&apos;, &apos;manager&apos;
7. SQL: &apos;INSERT INTO company_cars (brand) VALUES (?)&apos; Params: &apos;BMW&apos;
6. SQL: &apos;INSERT INTO company_employees (id, salary, department) VALUES (?, ?, ?)&apos; Params: &apos;15&apos;, &apos;800000&apos;, &apos;IT2&apos;
5. SQL: &apos;INSERT INTO company_persons (name, spouse_id, discr) VALUES (?, ?, ?)&apos; Params: &apos;Jonathan W.&apos;, &apos;&apos;, &apos;employee&apos;
4. SQL: &apos;INSERT INTO company_employees (id, salary, department) VALUES (?, ?, ?)&apos; Params: &apos;14&apos;, &apos;400000&apos;, &apos;IT2&apos;
3. SQL: &apos;INSERT INTO company_persons (name, spouse_id, discr) VALUES (?, ?, ?)&apos; Params: &apos;Guilherme B.&apos;, &apos;&apos;, &apos;employee&apos;
2. SQL: &apos;INSERT INTO company_employees (id, salary, department) VALUES (?, ?, ?)&apos; Params: &apos;13&apos;, &apos;200000&apos;, &apos;IT&apos;
Trace:
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/DBAL/Connection.php:630
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Query/Exec/MultiTableDeleteExecutor.php:123
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Query.php:198
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/AbstractQuery.php:511
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/AbstractQuery.php:349
/home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/ORM/Functional/AdvancedDqlQueryTest.php:93
/home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/OrmFunctionalTestCase.php:253
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;fixture is:&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 generateFixture()
    {
        $car = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; CompanyCar(&apos;BMW&apos;);

        $manager1 = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; CompanyManager();
        $manager1-&amp;gt;setName(&apos;Roman B.&apos;);
        $manager1-&amp;gt;setTitle(&apos;Foo&apos;);
        $manager1-&amp;gt;setDepartment(&apos;IT&apos;);
        $manager1-&amp;gt;setSalary(100000);
        $manager1-&amp;gt;setCar($car);

        $person2 = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; CompanyEmployee();
        $person2-&amp;gt;setName(&apos;Benjamin E.&apos;);
        $person2-&amp;gt;setDepartment(&apos;IT&apos;);
        $person2-&amp;gt;setSalary(200000);

        $person3 = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; CompanyEmployee();
        $person3-&amp;gt;setName(&apos;Guilherme B.&apos;);
        $person3-&amp;gt;setDepartment(&apos;IT2&apos;);
        $person3-&amp;gt;setSalary(400000);

        $person4 = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; CompanyEmployee();
        $person4-&amp;gt;setName(&apos;Jonathan W.&apos;);
        $person4-&amp;gt;setDepartment(&apos;IT2&apos;);
        $person4-&amp;gt;setSalary(800000);

        $person2-&amp;gt;setSpouse($person3);

        $manager1-&amp;gt;addFriend($person4);
        $person2-&amp;gt;addFriend($person3);
        $person2-&amp;gt;addFriend($person4);
        $person3-&amp;gt;addFriend($person4);

        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;persist($car);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;persist($manager1);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;persist($person2);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;persist($person3);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;persist($person4);
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;flush();
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_em-&amp;gt;clear();
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="10949">DDC-369</key>
            <summary>Bulk-Delete on Self-Referencing CTI fails with FK Error</summary>
                <type id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/subtask_alternate.png">Sub-task</type>
                    <parent id="12259">DDC-954</parent>
                        <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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Feb 2010 16:06:10 +0000</created>
                <updated>Wed, 23 May 2012 04:07:03 +0000</updated>
                    <resolved>Wed, 23 May 2012 04:07:03 +0000</resolved>
                            <version>2.0-ALPHA4</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="11814" author="romanb" created="Wed, 24 Feb 2010 16:41:22 +0000"  >&lt;p&gt;That should rather be -&amp;gt;executeUpdate() instead of -&amp;gt;getResult() but thats surely not the problem here.&lt;/p&gt;</comment>
                    <comment id="11817" author="romanb" created="Wed, 24 Feb 2010 17:25:45 +0000"  >&lt;p&gt;An option is to check all associations and if there is a self-referential one execute UPDATE statements to set the FKs to null.&lt;/p&gt;

&lt;p&gt;However, this is a bit of extra work and I dont consider this scenario extremely common together with the combination of bulk deletes.&lt;/p&gt;

&lt;p&gt;Pushing priority down for now.&lt;/p&gt;</comment>
                    <comment id="17968" author="guilhermeblanco" created="Wed, 23 May 2012 04:07:03 +0000"  >&lt;p&gt;Added coverage to this specific situation. All passing.&lt;br/&gt;
Closing the ticket as fixed for 2.3.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/3e601c3a53226ce981fe82db164f297a8d605ae7&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/3e601c3a53226ce981fe82db164f297a8d605ae7&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-890] Association mapping &apos;One-To-Many, Self-referencing&apos; with cascade and removes fk onDelete=restrict</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-890</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;By using the association mapping &apos;One-To-Many, Self-referencing&apos; removes the cascade.&lt;/p&gt;

&lt;p&gt;How to follow the example below, and removed the first parent entity after the children entities.&lt;/p&gt;

&lt;p&gt;And if you use foreign key onDelete=restrict the referential integrity error&lt;/p&gt;

&lt;p&gt;A possible solution in the patch attached below&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;Category.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&amp;lt;?php
/** @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;category&quot;&lt;/span&gt;) */
class Category
{
    /**
     * @Id
     * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $id;

    /**
     * @OneToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Category&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;parent&quot;&lt;/span&gt;, cascade={&lt;span class=&quot;code-quote&quot;&gt;&quot;remove&quot;&lt;/span&gt;})
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $children;

    /**
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Category&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;children&quot;&lt;/span&gt;)
     * @JoinColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;parent_id&quot;&lt;/span&gt;, referencedColumnName=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $parent;

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct() {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;children = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\Collections\ArrayCollection();
    }
}
?&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-sql&quot;&gt;CREATE TABLE `category` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `parent_id` int(10) unsigned DEFAULT NULL,
  `name` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_id_parent_id` (`parent_id`),
  CONSTRAINT `fk_id_parent_id` FOREIGN KEY (`parent_id`) REFERENCES `category` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="12144">DDC-890</key>
            <summary>Association mapping &apos;One-To-Many, Self-referencing&apos; with cascade and removes fk onDelete=restrict</summary>
                <type id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/subtask_alternate.png">Sub-task</type>
                    <parent id="12259">DDC-954</parent>
                        <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="ardemiranda">Andr&#233; Ribeiro de Miranda</reporter>
                        <labels>
                    </labels>
                <created>Tue, 23 Nov 2010 19:56:14 +0000</created>
                <updated>Wed, 23 May 2012 03:57:44 +0000</updated>
                    <resolved>Wed, 23 May 2012 03:57:44 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17967" author="guilhermeblanco" created="Wed, 23 May 2012 03:57:44 +0000"  >&lt;p&gt;Seems to be fixed already in master.&lt;br/&gt;
Closing the ticket.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10878" name="patch.diff" size="841" author="ardemiranda" created="Tue, 23 Nov 2010 19:56:14 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1737] MEDIUMTEXT field</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1737</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have a field which I want to be mysql mediumtext&lt;br/&gt;
/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@var string $description&lt;/li&gt;
	&lt;li&gt;&lt;/li&gt;
	&lt;li&gt;@ORM\Column(name=&quot;description&quot;, type=&quot;string&quot;, length=65536)&lt;br/&gt;
     */&lt;br/&gt;
    private $description;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Everything is fine, field created as &apos;mediumtext&apos;&lt;br/&gt;
but whenever I run&lt;br/&gt;
php app/console doctrine:schema:update --dump-sql&lt;/p&gt;

&lt;p&gt;I get&lt;br/&gt;
ALTER TABLE table CHANGE description description MEDIUMTEXT NOT NULL; &lt;br/&gt;
though description is MEDIUMTEXT already.&lt;/p&gt;</description>
                <environment>Ubuntu/CentOS</environment>
            <key id="13575">DDC-1737</key>
            <summary>MEDIUMTEXT field</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="olegk">Oleg</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Mar 2012 18:58:25 +0000</created>
                <updated>Wed, 23 May 2012 03:42:32 +0000</updated>
                    <resolved>Wed, 23 May 2012 03:42:32 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17965" author="guilhermeblanco" created="Wed, 23 May 2012 03:42:32 +0000"  >&lt;p&gt;Issue seems to be fixed already in master.&lt;/p&gt;

&lt;p&gt;Coverage test:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/commit/4030787aa178b5c85d4717a75c43eb122edbd68d&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/4030787aa178b5c85d4717a75c43eb122edbd68d&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1807] [GH-344] Composer modify</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1807</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 Hounddog:&lt;/p&gt;

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

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

&lt;p&gt;Included Bin file into composer&lt;br/&gt;
Modified bin dependencies to inclue the Composer Autoload.php&lt;br/&gt;
Added Missing Symfony/Console Dependency&lt;/p&gt;</description>
                <environment></environment>
            <key id="13677">DDC-1807</key>
            <summary>[GH-344] Composer modify</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, 2 May 2012 13:53:15 +0000</created>
                <updated>Tue, 22 May 2012 18:26:50 +0000</updated>
                    <resolved>Tue, 22 May 2012 18:26:50 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1822&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1822&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13711">DDC-1826</key>
            <summary>[GH-349] Fix DDC-1822</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>Sat, 19 May 2012 16:45:20 +0000</created>
                <updated>Tue, 22 May 2012 17:45:35 +0000</updated>
                    <resolved>Tue, 22 May 2012 17:45:35 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17952" author="beberlei" created="Sun, 20 May 2012 05:10:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-349&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/349&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/349&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1827] [GH-350] Added the branch-alias in the composer.json</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1827</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 stof:&lt;/p&gt;

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

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

&lt;p&gt;depends on doctrine/dbal#151&lt;/p&gt;</description>
                <environment></environment>
            <key id="13713">DDC-1827</key>
            <summary>[GH-350] Added the branch-alias in the composer.json</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>Sun, 20 May 2012 19:34:50 +0000</created>
                <updated>Tue, 22 May 2012 17:13:02 +0000</updated>
                    <resolved>Tue, 22 May 2012 17:13:02 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17955" author="beberlei" created="Sun, 20 May 2012 21:21:57 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-350&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/350&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/350&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1822] Intermediary parent for NoResult and NonUnique Exceptions</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1822</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I would like to propose a intermediary parent for the NoResult and NonUnique Exceptions, that is not as high level as ORMEXception, something in between.&lt;/p&gt;

&lt;p&gt;The reasoning for this is that sometime si want to get a single object out of the DB, and in case its not there i want to just get a null and carry on. For this I usually need to catch both exceptions as both results might trigger me to do something else, like abort. In some cases i do need to treat each of these in its own way, but in some cases it does not matter to which side the error went, it  only matters that its not the expected SingleResult. Catching a ORMException is not adequate as it may include other error which would need to be treated differently.&lt;/p&gt;

&lt;p&gt;My proposal would be like:&lt;/p&gt;

&lt;p&gt;ORMException -&amp;gt; NotExpectedResultException -&amp;gt; &lt;/p&gt;
{NoResult, NonUnique}

&lt;p&gt;Just a more detailed grouping of exceptions. Does this sound like something possible, or am I just nuts?&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13703">DDC-1822</key>
            <summary>Intermediary parent for NoResult and NonUnique Exceptions</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="rdohms">Rafael Dohms</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 May 2012 13:11:18 +0000</created>
                <updated>Sun, 20 May 2012 05:10:32 +0000</updated>
                    <resolved>Sun, 20 May 2012 05:10:32 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17951" author="guilhermeblanco" created="Sun, 20 May 2012 05:10:32 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/3d8e46447a4fa8871bd268e8ad69820c636e0dea&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/3d8e46447a4fa8871bd268e8ad69820c636e0dea&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1694] Entity Generator uses wrong DataTypes for docBlocks</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1694</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using the Doctrine\ORM\Tools\EntityGenerator, largely used by Symfony, the wrong data types are used in the docblocks. For example:&lt;/p&gt;

&lt;p&gt;    @param text $description&lt;/p&gt;

&lt;p&gt;Text needs to be converted to &quot;string&quot; in this case. So there needs to be proper Doctrine Data Type to php type as well as the conversion to DBAL that is already done.&lt;/p&gt;

&lt;p&gt;Examples:&lt;br/&gt;
smallint        =&amp;gt; int&lt;br/&gt;
bigint            =&amp;gt; int&lt;br/&gt;
text                =&amp;gt; string &lt;br/&gt;
datetime       =&amp;gt; \DateTime, &lt;br/&gt;
datetimetz,   =&amp;gt; \DateTime&lt;br/&gt;
 etc...&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13518">DDC-1694</key>
            <summary>Entity Generator uses wrong DataTypes for docBlocks</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="rdohms">Rafael Dohms</reporter>
                        <labels>
                    </labels>
                <created>Sun, 11 Mar 2012 09:37:12 +0000</created>
                <updated>Sat, 5 May 2012 11:47:19 +0000</updated>
                    <resolved>Sat, 5 May 2012 11:47:19 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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

&lt;p&gt;if I understand right &lt;br/&gt;
Probably this code will be replaced by Benjamin&apos;s Code Generator.&lt;/p&gt;

&lt;p&gt;Any way, for now I think this is a valid issue..&lt;/p&gt;</description>
                <environment></environment>
            <key id="13586">DDC-1748</key>
            <summary>[GH-317] Fix DDC-1694</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>Sun, 1 Apr 2012 16:38:25 +0000</created>
                <updated>Sat, 5 May 2012 11:45:34 +0000</updated>
                    <resolved>Sat, 5 May 2012 11:45:34 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17722" author="beberlei" created="Sun, 1 Apr 2012 18:09:54 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-317&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/317&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/317&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17723" author="beberlei" created="Sun, 1 Apr 2012 18:19:57 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-317&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/317&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/317&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17744" author="beberlei" created="Wed, 4 Apr 2012 19:59:01 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-317&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/317&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/317&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17785" 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-317&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/317&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/317&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17812" 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-317&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/317&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/317&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1542] GH-221: [Inheritance] Joined: Default discriminator map</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1542</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/221&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/221&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;I know this topic was discussed a lot of times, but I wanted to give it a try anyway.&lt;/p&gt;

&lt;p&gt;I want the discriminator map to be configured dynamically by doctrine instead of having to manually configure it myself. So I&apos;ve digged into the code and the only place I&apos;ve found (yet) to put the necessary code to make this happen is in the Drivers, just when they&apos;re loading the mapping information. So far, I&apos;ve put a very simple piece of code in the AnnotationDriver to give it a try and I wrote a test for it. But before going on I wanted to ask you if it looks ok for you. &lt;/p&gt;

&lt;p&gt;I&apos;ve tested it in an application I&apos;m working on and, so far, it works.&lt;/p&gt;

&lt;p&gt;Two things come to mind though:&lt;/p&gt;

&lt;p&gt;1) Is there any special case this would cause problems that I don&apos;t know of?&lt;br/&gt;
2) If not then, Is there a better place to put this code so I don&apos;t have to implement it in all drivers? I&apos;ve been looking at the ClassMetadataFactory class but I didn&apos;t find a place to put this code because it seems it&apos;s too late to calculate the discriminator map at the time this class is used. So, in case there is no other place, where should I refactor the logic? It feels uncomfortable to create a class just to put this simple logic on, but as drivers don&apos;t inherit from any class, I don&apos;t see another option.&lt;/p&gt;



&lt;p&gt;Thanks!&lt;/p&gt;</description>
                <environment></environment>
            <key id="13276">DDC-1542</key>
            <summary>GH-221: [Inheritance] Joined: Default discriminator map</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 16 Dec 2011 23:46:06 +0000</created>
                <updated>Fri, 4 May 2012 21:21:57 +0000</updated>
                    <resolved>Fri, 4 May 2012 21:21:57 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17126" author="beberlei" created="Wed, 28 Dec 2011 08:54:28 +0000"  >&lt;p&gt;Mark as improvement and schedule for 2.3&lt;/p&gt;</comment>
                    <comment id="17629" author="beberlei" created="Thu, 22 Mar 2012 22:07:11 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-221&amp;#93;&lt;/span&gt; was &lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/221&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/221&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1808] [GH-345] Fixed DDC-1802</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1808</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 hason:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13678">DDC-1808</key>
            <summary>[GH-345] Fixed DDC-1802</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, 2 May 2012 17:12:44 +0000</created>
                <updated>Fri, 4 May 2012 20:09:33 +0000</updated>
                    <resolved>Fri, 4 May 2012 20:09:33 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17911" author="beberlei" created="Fri, 4 May 2012 20:04:14 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-345&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/345&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/345&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1802] DQL parser issue when using FunctionsReturningStrings(...)  NOT LIKE</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1802</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;If you create a query like the following, you will get an exception:&lt;/p&gt;

&lt;p&gt;$em-&amp;gt;createQuery( &quot;SELECT e FROM MyEntity e WHERE CONCAT(e.name, e.name2) NOT LIKE &apos;%abc%&apos;&quot; );&lt;/p&gt;

&lt;p&gt;The variable $token&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;type&amp;#39;&amp;#93;&lt;/span&gt; is Lexer::T_NOT - &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Query/Parser.php#L2238&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Query/Parser.php#L2238&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13668">DDC-1802</key>
            <summary>DQL parser issue when using FunctionsReturningStrings(...)  NOT LIKE</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="hason">Martin Haso&#328;</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Apr 2012 06:10:42 +0000</created>
                <updated>Fri, 4 May 2012 20:09:10 +0000</updated>
                    <resolved>Fri, 4 May 2012 20:09:10 +0000</resolved>
                            <version>2.1.3</version>
                <version>2.1.4</version>
                <version>2.1.5</version>
                <version>2.1.6</version>
                <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>2.2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17912" author="asm89" created="Fri, 4 May 2012 20:09:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/345&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/345&lt;/a&gt; got merged &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1743] [GH-315] [WIP] Allowing proxies to be passed to ORM public API</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1743</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 Ocramius:&lt;/p&gt;

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

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

&lt;p&gt;Basically, following happens:&lt;/p&gt;

&lt;p&gt;```php&lt;br/&gt;
$proxy = some_unserialization();&lt;br/&gt;
$em-&amp;gt;persist($proxy); // exception because the class name is not recognized&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Fortunately, just some replacements of `get_class($entity)` with `Doctrine\Common\Util\ClassUtils::getClass($entity)` fix the issue.&lt;/p&gt;

&lt;p&gt;I wanted to leave this as &lt;span class=&quot;error&quot;&gt;&amp;#91;WIP&amp;#93;&lt;/span&gt; because I need some feedback on the test cases. All three tests fail without the patch, while [!&lt;span class=&quot;error&quot;&gt;&amp;#91;Build Status&amp;#93;&lt;/span&gt;(&lt;a href=&quot;https://secure.travis-ci.org/Ocramius/doctrine2.png?branch=getclass-on-proxies-refactoring)](http://travis-ci.org/Ocramius/doctrine2&quot; class=&quot;external-link&quot;&gt;https://secure.travis-ci.org/Ocramius/doctrine2.png?branch=getclass-on-proxies-refactoring)](http://travis-ci.org/Ocramius/doctrine2&lt;/a&gt;) with it applied.&lt;/p&gt;

&lt;p&gt;What is a bit tricky is the status of the proxies.&lt;/p&gt;

&lt;p&gt;Cases where `$_&lt;em&gt;initialized&lt;/em&gt;_ = false;` &amp;amp;&amp;amp; `$_identifier = array();` and others fail because of notices and weird issues that are very difficult to hunt down. That is because of the strange nature of proxies obviously. I just wanted to know if this should be somehow fixed in here.&lt;/p&gt;

&lt;p&gt;Another issue is probably performance, as there is some minor overhead introduced. What I&apos;d like to know is if &lt;a href=&quot;https://github.com/doctrine/common/blob/master/lib/Doctrine/Common/Util/ClassUtils.php#L56&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/blob/master/lib/Doctrine/Common/Util/ClassUtils.php#L56&lt;/a&gt; could be reduced to a `if ($object instanceof Proxy) &lt;/p&gt;
{ ... }
&lt;p&gt;`.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13581">DDC-1743</key>
            <summary>[GH-315] [WIP] Allowing proxies to be passed to ORM public API</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>Sat, 31 Mar 2012 00:36:46 +0000</created>
                <updated>Fri, 4 May 2012 18:03:47 +0000</updated>
                    <resolved>Fri, 4 May 2012 18:03:47 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17703" author="beberlei" created="Sat, 31 Mar 2012 21:26:58 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-315&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/315&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/315&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17708" author="beberlei" created="Sun, 1 Apr 2012 09:02:14 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-315&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/315&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/315&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17717" author="beberlei" created="Sun, 1 Apr 2012 14:27:51 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-315&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/315&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/315&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17753" author="beberlei" created="Wed, 4 Apr 2012 19:59:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-315&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/315&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/315&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17793" author="beberlei" created="Fri, 6 Apr 2012 13:50:37 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-315&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/315&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/315&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17810" author="beberlei" created="Sat, 7 Apr 2012 07:21:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-315&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/315&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/315&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1768] [GH-330] improved exception message</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1768</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 schmittjoh:&lt;/p&gt;

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

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

&lt;p&gt;This makes the exception message more helpful. Before you were basically searching a needle in a haystack.&lt;/p&gt;

&lt;p&gt;Note that I haven&apos;t been able to run the tests because I don&apos;t have PHPUnit 3.6 atm, so please check before merging.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13610">DDC-1768</key>
            <summary>[GH-330] improved 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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Apr 2012 02:58:18 +0000</created>
                <updated>Fri, 4 May 2012 18:03:02 +0000</updated>
                    <resolved>Fri, 4 May 2012 18:03:02 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17788" author="beberlei" created="Fri, 6 Apr 2012 13:50:37 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-330&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/330&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/330&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17817" author="beberlei" created="Sat, 7 Apr 2012 07:21:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-330&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/330&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/330&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-964] Implement @AssociationOverride and @FieldOverride for MappedSuperclasses</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-964</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;We should allow to override certain attributes of associations and fields that are defined in a mapped superclass:&lt;/p&gt;

&lt;p&gt;1. Fields should allow the Column Name to be different.&lt;br/&gt;
2. Associations should allow join columns and join table.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12270">DDC-964</key>
            <summary>Implement @AssociationOverride and @FieldOverride for MappedSuperclasses</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 31 Dec 2010 08:33:55 +0000</created>
                <updated>Wed, 2 May 2012 12:35:44 +0000</updated>
                    <resolved>Wed, 2 May 2012 12:35:44 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>2</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="16987" author="beberlei" created="Wed, 14 Dec 2011 19:18:03 +0000"  >&lt;p&gt;This issue is referenced in Github Pull-Request GH-218&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/218&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/218&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17901" author="fabio.bat.silva" created="Wed, 2 May 2012 12:35:44 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/0a09a28ec9301b371da54babb076df84a0d2033f&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/0a09a28ec9301b371da54babb076df84a0d2033f&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1663] Implement @NamedNativeQuery and @SqlResultSetMapping</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1663</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;You may also express queries in the native SQL dialect of your database. &lt;br/&gt;
This is useful if you want to utilize database specific features.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;The NamedNativeQuery is used to specify a native SQL named query.&lt;/li&gt;
	&lt;li&gt;The SqlResultSetMapping is used to specify the mapping of the result of a native SQL query.&lt;/li&gt;
	&lt;li&gt;The NamedNativeQuery and SqlResultSetMapping annotations/xml/yml can be applied to an entity or mapped superclass.&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
            <key id="13467">DDC-1663</key>
            <summary>Implement @NamedNativeQuery and @SqlResultSetMapping</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="fabio.bat.silva">Fabio B. Silva</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Feb 2012 18:00:56 +0000</created>
                <updated>Wed, 18 Apr 2012 23:47:44 +0000</updated>
                    <resolved>Wed, 18 Apr 2012 23:47:44 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17475" author="guilhermeblanco" created="Wed, 22 Feb 2012 06:01:29 +0000"  >&lt;p&gt;I&apos;m fine with it. I didn&apos;t include it in the beginning (when I was creating the NamedQuery support) because of lack of time.&lt;br/&gt;
Also, we should focus on what Hibernate does and implement the required modifications for our scenario.&lt;/p&gt;

&lt;p&gt;A complete solution would 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
 *
 * @NamedNativeQueries({
 *     @NamedNativeQuery(
 *         name=&lt;span class=&quot;code-quote&quot;&gt;&quot;sample-query&quot;&lt;/span&gt;,
 *         query=&lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT ... FROM ... WHERE ...&quot;&lt;/span&gt;,
 *         resultSetMapping=&lt;span class=&quot;code-quote&quot;&gt;&quot;sample-mapping&quot;&lt;/span&gt;
 *     )
 * })
 *
 * @ResultSetMappings({
 *     @ResultSetMapping(
 *         name=&lt;span class=&quot;code-quote&quot;&gt;&quot;sample-mapping&quot;&lt;/span&gt;,
 *         entities={
 *             @EntityResult(
 *                 name=&lt;span class=&quot;code-quote&quot;&gt;&quot;App\Entity\MyEntity&quot;&lt;/span&gt;,
 *                 fields={
 *                     @FieldResult(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;, column=&lt;span class=&quot;code-quote&quot;&gt;&quot;entity_id&quot;&lt;/span&gt;),
 *                     ...
 *                 }
 *             ),
 *             ...
 *         }
 *     ),
 *     ...
 * })
 */
class MyEntity
{
    &lt;span class=&quot;code-comment&quot;&gt;// ...
&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="17864" author="fabio.bat.silva" created="Wed, 18 Apr 2012 23:47:44 +0000"  >&lt;p&gt;Solved by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/bad811df6a07992405d2f59968d39e1670cad154&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/bad811df6a07992405d2f59968d39e1670cad154&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1781] [GH-337] Removed dependency on common as required by dbal anyway</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1781</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 richardmiller:&lt;/p&gt;

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

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

&lt;p&gt;Not sure if this is the way to resolve this problem or not but I just tried to install dev-master using composer, doctrine/dbal and doctrine/common are both required in the &quot;dev-master&quot; versions but doctrine/dbal requires doctrine/common: &amp;gt;=2.2.0,&amp;lt;=2.2.99 which causes a conflict. Removing the dependency on doctrine/common would allow doctrine/dbal to install the version it requires. If this is not an ok solution then is there an alternative one?&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13638">DDC-1781</key>
            <summary>[GH-337] Removed dependency on common as required by dbal anyway</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>Tue, 17 Apr 2012 11:10:53 +0000</created>
                <updated>Tue, 17 Apr 2012 13:06:18 +0000</updated>
                    <resolved>Tue, 17 Apr 2012 13:06:18 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17860" author="beberlei" created="Tue, 17 Apr 2012 12:03:46 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-337&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/337&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/337&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-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-1752] [GH-321] Addition for new cache driver</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1752</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 import:&lt;/p&gt;

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

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

&lt;p&gt;New cache driver addition for Doctrine running in ```non-dev``` mode and cache driver is not set.&lt;br/&gt;
This cache driver (Redis) was added with doctrine/common#109&lt;/p&gt;</description>
                <environment></environment>
            <key id="13590">DDC-1752</key>
            <summary>[GH-321] Addition for new cache driver</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>Mon, 2 Apr 2012 09:18:35 +0000</created>
                <updated>Sat, 7 Apr 2012 07:24:32 +0000</updated>
                    <resolved>Sat, 7 Apr 2012 07:24:32 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17751" 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-321&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/321&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/321&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17790" author="beberlei" created="Fri, 6 Apr 2012 13:50:37 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-321&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/321&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/321&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17807" author="beberlei" created="Sat, 7 Apr 2012 07:21:01 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-321&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/321&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/321&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17821" author="beberlei" created="Sat, 7 Apr 2012 07:24:32 +0000"  >&lt;p&gt;Merged&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-1746] Throw Exception when setting unknown cascade option</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1746</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;See &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1742&quot; title=&quot;Cascade remove doesn&amp;#39;t work with inheritance&quot;&gt;&lt;del&gt;DDC-1742&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13584">DDC-1746</key>
            <summary>Throw Exception when setting unknown cascade option</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 1 Apr 2012 08:56:39 +0000</created>
                <updated>Sun, 1 Apr 2012 09:02:19 +0000</updated>
                    <resolved>Sun, 1 Apr 2012 09:02:19 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17712" author="beberlei" created="Sun, 1 Apr 2012 09:02:19 +0000"  >&lt;p&gt;Implemented&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

</description>
                <environment></environment>
            <key id="13558">DDC-1725</key>
            <summary>[GH-309] Fix DDC-1686</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>Sun, 25 Mar 2012 03:34:18 +0000</created>
                <updated>Fri, 30 Mar 2012 19:57:39 +0000</updated>
                    <resolved>Fri, 30 Mar 2012 19:57:39 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17654" author="beberlei" created="Sun, 25 Mar 2012 16:01:22 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-309&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/309&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/309&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17658" author="beberlei" created="Mon, 26 Mar 2012 04:33:47 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-309&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/309&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/309&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1726] [GH-310] [DDC-889] Mention parent class for debugging purposes.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1726</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of FabioBatSilva:&lt;/p&gt;

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

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

&lt;p&gt;@beberlei I tried to use ClassMetadata#parentClasses but is not loaded at this point.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13559">DDC-1726</key>
            <summary>[GH-310] [DDC-889] Mention parent class for debugging purposes.</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>Sun, 25 Mar 2012 17:23:32 +0000</created>
                <updated>Fri, 30 Mar 2012 19:56:28 +0000</updated>
                    <resolved>Fri, 30 Mar 2012 19:56:28 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17656" author="beberlei" created="Mon, 26 Mar 2012 03:57:58 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-310&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/310&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/310&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17657" author="beberlei" created="Mon, 26 Mar 2012 04:03:49 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-310&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/310&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/310&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17659" author="beberlei" created="Mon, 26 Mar 2012 04:33:49 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-310&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/310&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/310&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17669" author="beberlei" created="Thu, 29 Mar 2012 01:09:56 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-310&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/310&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/310&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17674" author="beberlei" created="Thu, 29 Mar 2012 11:41:34 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-310&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/310&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/310&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17682" author="beberlei" created="Fri, 30 Mar 2012 19:55:54 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-310&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/310&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/310&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-889] Not a mapped superclass or id not found exceptions should mention parent classes</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-889</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When either the &quot;not an entity or mapped superclass&quot; or the &quot;no id/primary key found&quot; exceptions are thrown the Mapped Parent classes of $cm-&amp;gt;parentClasses should be mentioned for debugging purposes.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12247">DDC-889</key>
            <summary>Not a mapped superclass or id not found exceptions should mention parent classes</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 Dec 2010 20:07:26 +0000</created>
                <updated>Fri, 30 Mar 2012 19:56:13 +0000</updated>
                    <resolved>Fri, 30 Mar 2012 19:56:13 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17685" author="beberlei" created="Fri, 30 Mar 2012 19:56:13 +0000"  >&lt;p&gt;Merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1736] [GH-313] Fixed tests on Windows</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1736</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 hason:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13572">DDC-1736</key>
            <summary>[GH-313] Fixed tests on Windows</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>Thu, 29 Mar 2012 11:27:07 +0000</created>
                <updated>Fri, 30 Mar 2012 19:53:12 +0000</updated>
                    <resolved>Fri, 30 Mar 2012 19:53:12 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17673" author="beberlei" created="Thu, 29 Mar 2012 11:41:32 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-313&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/313&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/313&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1686] Query/Expr/Join getAlias &amp; getJoin</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1686</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;It would be helpfull if we could get the alias and the join properties, much like we can get the alias and from properties from Query/Expr/From&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13502">DDC-1686</key>
            <summary>Query/Expr/Join getAlias &amp; getJoin</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="jelte@marlon">Jelte Steijaert</reporter>
                        <labels>
                    </labels>
                <created>Tue, 6 Mar 2012 15:17:56 +0000</created>
                <updated>Mon, 26 Mar 2012 12:23:58 +0000</updated>
                    <resolved>Mon, 26 Mar 2012 12:23:58 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17661" author="fabio.bat.silva" created="Mon, 26 Mar 2012 12:23:58 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/2811d161bbb1b1e667cae5f0fb065018e82d6b25&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/2811d161bbb1b1e667cae5f0fb065018e82d6b25&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1697] DQL Query with key=&gt;value array in parameter</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1697</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;In he method &quot;processParameterValue&quot; in the class Doctrine\ORM\Query line 303,  a &quot;for&quot; loop is use for construct the parameter query.&lt;/p&gt;

&lt;p&gt;But if in the query parameter we pass a key=&amp;gt;value array, the method throw an error.&lt;/p&gt;

&lt;p&gt;A little example :&lt;br/&gt;
$aId = array(0 =&amp;gt; &quot;Paris&quot;, 3 =&amp;gt; &quot;Canne&quot;, 9 =&amp;gt; &quot;St Julien&quot;);&lt;/p&gt;

&lt;p&gt;$dql = $this-&amp;gt;_em-&amp;gt;createQueryBuilder();&lt;br/&gt;
$dql-&amp;gt;select(&apos;c.ID&apos;)&lt;br/&gt;
     -&amp;gt;from(&apos;BOD\ModelBundle\Entity\City&apos;, &apos;c&apos;)&lt;br/&gt;
     -&amp;gt;where(&apos;c.IC IN (:cityIDs)&apos;)&lt;br/&gt;
     -&amp;gt;setParameter(&apos;cityIDs&apos;, $aId);&lt;/p&gt;

&lt;p&gt;return $dql-&amp;gt;getQuery()-&amp;gt;execute();&lt;/p&gt;

&lt;p&gt;The method  &quot;processParameterValue&quot; throw an error because he don&apos;t found the index 1.&lt;/p&gt;

&lt;p&gt;But if we replace the &quot;for&quot; loop by a foreach in Doctrine\ORM\Query::processParameterValue()  :&lt;br/&gt;
foreach ($value as $keyValue =&amp;gt; $oneValue) {&lt;br/&gt;
   $paramValue = $this-&amp;gt;processParameterValue($oneValue);&lt;/p&gt;

&lt;p&gt;  // TODO: What about Entities that have composite primary key?&lt;br/&gt;
  $value&lt;span class=&quot;error&quot;&gt;&amp;#91;$keyValue&amp;#93;&lt;/span&gt; = is_array($paramValue) ? $paramValue&lt;span class=&quot;error&quot;&gt;&amp;#91;key($paramValue)&amp;#93;&lt;/span&gt; : $paramValue;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;It work really fine.&lt;/p&gt;

&lt;p&gt;I remain at your disposal for any further information.&lt;/p&gt;

&lt;p&gt;Thanks for all!&lt;/p&gt;
</description>
                <environment>PHP Version 5.3.3-1ubuntu9.10, Symfony 2.0.11</environment>
            <key id="13520">DDC-1697</key>
            <summary>DQL Query with key=&gt;value array in parameter</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="waldo2188">waldo</reporter>
                        <labels>
                    </labels>
                <created>Mon, 12 Mar 2012 16:16:55 +0000</created>
                <updated>Sun, 25 Mar 2012 03:38:24 +0000</updated>
                    <resolved>Sun, 25 Mar 2012 03:38:24 +0000</resolved>
                            <version>2.2.1</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17648" author="fabio.bat.silva" created="Sun, 25 Mar 2012 03:38:24 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/8a52e3033b51f0f0b97e1ee75477644484debf2b&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/8a52e3033b51f0f0b97e1ee75477644484debf2b&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1470] Bad discrimator value give imprecise error exception</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1470</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When you define a wrong discriminator field in the mapping configuration, doctrine will return the following ErrorException when trying to get an instance of the object:&lt;/p&gt;

&lt;p&gt;    ErrorException: Notice: Undefined index:  in /Users/fmaz/Site/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php line 92&lt;/p&gt;

&lt;p&gt;This is not precise enough, an error giving hint on the mapping configuration that is concerned, and on the bad field should be given.&lt;/p&gt;

&lt;p&gt;Hope this will help improving the &quot;userfriendlyness&quot;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13149">DDC-1470</key>
            <summary>Bad discrimator value give imprecise error exception</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="fmaz008">Francois Mazerolle</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Nov 2011 18:37:37 +0000</created>
                <updated>Fri, 16 Mar 2012 02:37:21 +0000</updated>
                    <resolved>Fri, 16 Mar 2012 02:37:21 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17603" author="guilhermeblanco" created="Fri, 16 Mar 2012 02:37:21 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/6f3ef148a95c6e598f9b16848c6a33b3d7a39077&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/6f3ef148a95c6e598f9b16848c6a33b3d7a39077&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1591] Paginator: ResultVariable cannot be used in HavingClause</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1591</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Using the QueryBuilder, I&apos;m getting the message&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;Notice: Undefined index: distance in vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php line 2128
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;when trying to add a &quot;having&quot; clause for the field &quot;distance&quot;, which is defined in the &quot;select&quot; part of the statement:&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;$queryBuilder
    -&amp;gt;select(&apos;myEntity, MY_FUNCTION() AS distance&apos;)
    -&amp;gt;having(&apos;distance &amp;lt;= 10&apos;)
;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13346">DDC-1591</key>
            <summary>Paginator: ResultVariable cannot be used in HavingClause</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="craue">Christian Raue</reporter>
                        <labels>
                    </labels>
                <created>Mon, 9 Jan 2012 23:35:34 +0000</created>
                <updated>Thu, 15 Mar 2012 22:22:50 +0000</updated>
                    <resolved>Thu, 15 Mar 2012 22:22:50 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17245" author="fabio.bat.silva" created="Sat, 14 Jan 2012 16:52:27 +0000"  >&lt;p&gt;Christian, I couldn&apos;t reproduce.&lt;/p&gt;

&lt;p&gt;Can you give more details ?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                    <comment id="17253" author="craue" created="Sun, 15 Jan 2012 14:24:14 +0000"  >&lt;p&gt;I tried it again and found out that it could also be an issue in &lt;a href=&quot;https://github.com/whiteoctober/Pagerfanta&quot; class=&quot;external-link&quot;&gt;https://github.com/whiteoctober/Pagerfanta&lt;/a&gt; rather in Doctrine itself because my query is passed to that pager to show a sliced result. Maybe that issue could already be resolved by &lt;a href=&quot;https://github.com/whiteoctober/Pagerfanta/pull/46&quot; class=&quot;external-link&quot;&gt;https://github.com/whiteoctober/Pagerfanta/pull/46&lt;/a&gt;. Will give it a try...&lt;/p&gt;</comment>
                    <comment id="17256" author="craue" created="Sun, 15 Jan 2012 14:31:36 +0000"  >&lt;p&gt;In fact, applying that patch made the query work. So this is not a Doctrine issue.&lt;/p&gt;</comment>
                    <comment id="17395" author="craue" created="Fri, 10 Feb 2012 17:55:22 +0000"  >&lt;p&gt;Since the PR mentioned was not merged and Doctrine&apos;s pagination is used now, the issue still exists and I cannot use a result variable in a &quot;having&quot; clause. But I&apos;d like to. &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/wink.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="17396" author="stof" created="Fri, 10 Feb 2012 17:57:05 +0000"  >&lt;p&gt;This ticket is indeed invalid as it is talking about the query builder. Please open a dedicated ticket for the pagination issue&lt;/p&gt;</comment>
                    <comment id="17397" author="craue" created="Fri, 10 Feb 2012 18:05:38 +0000"  >&lt;p&gt;But I am using the QueryBuilder and then passing the query to a DoctrineORMAdapter instance. The error message didn&apos;t change, just the line number:&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;Notice: Undefined index: distance in vendor\doctrine\lib\Doctrine\ORM\Query\SqlWalker.php line 2142
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But I can confirm that this error doesn&apos;t occur when not using a paginator. How to continue?&lt;/p&gt;</comment>
                    <comment id="17399" author="beberlei" created="Fri, 10 Feb 2012 20:30:25 +0000"  >&lt;p&gt;Which paginator are you using?&lt;/p&gt;</comment>
                    <comment id="17402" author="craue" created="Fri, 10 Feb 2012 20:33:55 +0000"  >&lt;p&gt;Still &lt;a href=&quot;https://github.com/whiteoctober/Pagerfanta/&quot; class=&quot;external-link&quot;&gt;https://github.com/whiteoctober/Pagerfanta/&lt;/a&gt; &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/wink.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="17456" author="beberlei" created="Mon, 20 Feb 2012 10:44:55 +0000"  >&lt;p&gt;Renamed and assigned issue.&lt;/p&gt;</comment>
                    <comment id="17601" author="asm89" created="Thu, 15 Mar 2012 22:22:50 +0000"  >&lt;p&gt;Fixed as sander was kind enough to resubmit the code to the doctrine2 repository now instead:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/298&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/298&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1687] [GH-298] by sandermarechal: Pagination using SQL walkers</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1687</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 sandermarechal:&lt;/p&gt;

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

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

&lt;p&gt;A CountSqlWalker and LimitSubquerySqlWalker have been implemented. By&lt;br/&gt;
default the Paginator will use these SQL walkers. When a query already&lt;br/&gt;
uses custom SQL walkers, the Paginator will fall back to the existing&lt;br/&gt;
TreeWalker implementations. Improvements:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Support for more complex DQL queries using named mixed results with&lt;br/&gt;
  GROUP BY and HAVING. For example:&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;  SELECT g, u, COUNT(u.id) AS userCount&lt;br/&gt;
      FROM Entity\Group g LEFT JOIN g.users u&lt;br/&gt;
      GROUP BY g.id&lt;br/&gt;
      HAVING userCount &amp;gt; 0&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Support for entities with composite primary keys in the CountSqlWalker&lt;br/&gt;
  and LimitSubquerySqlWalker. Only the WhereInWalker still needs to be&lt;br/&gt;
  updated for full composite primary key support. But someone smarter&lt;br/&gt;
  than me needs to look at that and figure out how to build a WHERE IN&lt;br/&gt;
  query that can select rows based on multiple columns.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="13503">DDC-1687</key>
            <summary>[GH-298] by sandermarechal: Pagination using SQL walkers</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>Tue, 6 Mar 2012 15:33:41 +0000</created>
                <updated>Mon, 12 Mar 2012 08:05:08 +0000</updated>
                    <resolved>Mon, 12 Mar 2012 08:05:08 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17556" author="beberlei" created="Mon, 12 Mar 2012 08:05:08 +0000"  >&lt;p&gt;Merged for 2.3&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1696] String support in THEN and ELSE part of CASE expression is broken</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1696</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The SQL generated when using strings in the THEN and ELSE parts of the CASE expression are not valid.&lt;/p&gt;

&lt;p&gt;This testcase will fail:&lt;br/&gt;
        $this-&amp;gt;assertSqlGeneration(&lt;br/&gt;
            &quot;SELECT g.id, CASE WHEN ((g.id / 2) &amp;gt; 18) THEN &apos;Foo&apos; ELSE &apos;Bar&apos; END AS test FROM Doctrine\Tests\Models\CMS\CmsGroup g&quot;,&lt;br/&gt;
            &quot;SELECT c0_.id AS id0, CASE WHEN (c0_.id / 2 &amp;gt; 18) THEN &apos;Foo&apos; ELSE &apos;Bar&apos; END AS sclr1 FROM cms_groups c0_&quot;&lt;br/&gt;
        );&lt;/p&gt;


&lt;p&gt;Noticed by a user at github:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/277&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/277&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/278&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/278&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13519">DDC-1696</key>
            <summary>String support in THEN and ELSE part of CASE expression is broken</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="asm89">Alexander</reporter>
                        <labels>
                    </labels>
                <created>Sun, 11 Mar 2012 23:22:47 +0000</created>
                <updated>Mon, 12 Mar 2012 01:15:12 +0000</updated>
                    <resolved>Mon, 12 Mar 2012 01:15:12 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17555" author="guilhermeblanco" created="Mon, 12 Mar 2012 01:15:12 +0000"  >&lt;p&gt;Fixed by &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/795438670517cd7a4e76bca6dd33fdc9bbb5d988&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/795438670517cd7a4e76bca6dd33fdc9bbb5d988&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;@beberlei please merge in 2.2! =D&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1689] [GH-299] by patrick-mcdougle: Fixed comment for createQuery to include the variable name.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1689</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 patrick-mcdougle:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13505">DDC-1689</key>
            <summary>[GH-299] by patrick-mcdougle: Fixed comment for createQuery to include the variable name.</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>Tue, 6 Mar 2012 20:18:41 +0000</created>
                <updated>Sun, 11 Mar 2012 21:49:53 +0000</updated>
                    <resolved>Sun, 11 Mar 2012 21:49:53 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17552" author="beberlei" created="Sun, 11 Mar 2012 21:49:53 +0000"  >&lt;p&gt;Merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1426] Github-PR-115 by mpdeimos: findByXXX does not accept orderBy/limit/offset</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1426</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Our modification to pass findByXXX functions orderBy/limit/offset params for entity repositories like one is used from normal findBy function.&lt;/p&gt;

&lt;p&gt;We&apos;re using an if cascade in favor of the call_user_function_array since the latter is considered as slow.&lt;/p&gt;

&lt;p&gt;PS: If i need to target this pull request to your master, I&apos;ll resubmit - it&apos;s just that we&apos;re building against a stable codebase.&lt;/p&gt;


&lt;p&gt;Reference link: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/115&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/115&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13091">DDC-1426</key>
            <summary>Github-PR-115 by mpdeimos: findByXXX does not accept orderBy/limit/offset</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="asm89">Alexander</assignee>
                                <reporter username="guilhermeblanco">Guilherme Blanco</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Oct 2011 13:39:06 +0000</created>
                <updated>Sun, 11 Mar 2012 21:37:45 +0000</updated>
                    <resolved>Sun, 11 Mar 2012 21:37:45 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17550" author="asm89" created="Sun, 11 Mar 2012 21:37:45 +0000"  >&lt;p&gt;Added in master. See here: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/115&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/115&lt;/a&gt;.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1679] [GH-296] by brikou: According to &quot;Doctrine&apos;s implicit CS&quot; and &quot;Symfony&apos;s implicit CS&quot; an emp...</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1679</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 brikou:&lt;/p&gt;

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

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

&lt;p&gt;...ty line added to the end of the file (...same tweaks like the one pushed for the entity generator)&lt;/p&gt;</description>
                <environment></environment>
            <key id="13492">DDC-1679</key>
            <summary>[GH-296] by brikou: According to &quot;Doctrine&apos;s implicit CS&quot; and &quot;Symfony&apos;s implicit CS&quot; an emp...</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 4 Mar 2012 08:44:10 +0000</created>
                <updated>Mon, 5 Mar 2012 06:55:34 +0000</updated>
                    <resolved>Mon, 5 Mar 2012 06:55:34 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17512" author="guilhermeblanco" created="Mon, 5 Mar 2012 06:55:34 +0000"  >&lt;p&gt;Merged.&lt;/p&gt;

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

<item>
            <title>[DDC-1673] ProxyFactory method generateProxyClasses argument $toDir does not affect anything</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1673</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;See my note in the github changeset - &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/a029b284234065a03dab4241b29f0325975eeac6#L1L116&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/a029b284234065a03dab4241b29f0325975eeac6#L1L116&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Full method code on the master - &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L116&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L116&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13483">DDC-1673</key>
            <summary>ProxyFactory method generateProxyClasses argument $toDir does not affect anything</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="gedrox">Aigars Gedroics</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Feb 2012 11:31:50 +0000</created>
                <updated>Sat, 3 Mar 2012 18:45:04 +0000</updated>
                    <resolved>Sat, 3 Mar 2012 18:24:53 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.2.1</fixVersion>
                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17497" author="guilhermeblanco" created="Sat, 3 Mar 2012 18:24:53 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/bf80ee6a30f04aed406a3253ef7459b4fcf11bda&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/bf80ee6a30f04aed406a3253ef7459b4fcf11bda&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17498" author="beberlei" created="Sat, 3 Mar 2012 18:45:04 +0000"  >&lt;p&gt;Merged into 2.2&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1677] [GH-295] by brikou: According to &quot;Doctrine&apos;s implicit CS&quot; and &quot;Symfony&apos;s implicit CS&quot; an emp...</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1677</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 &lt;/p&gt;
{username}
&lt;p&gt;:&lt;/p&gt;

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

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

&lt;p&gt;...ty line added to the end of the file&lt;/p&gt;</description>
                <environment></environment>
            <key id="13489">DDC-1677</key>
            <summary>[GH-295] by brikou: According to &quot;Doctrine&apos;s implicit CS&quot; and &quot;Symfony&apos;s implicit CS&quot; an emp...</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 2 Mar 2012 08:57:43 +0000</created>
                <updated>Sat, 3 Mar 2012 12:24:03 +0000</updated>
                    <resolved>Sat, 3 Mar 2012 12:24:03 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17493" author="beberlei" created="Sat, 3 Mar 2012 12:24:03 +0000"  >&lt;p&gt;fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1616] SchemaTool - CreateCommand should dump &quot;valid&quot; SQL and omit ATTENTION line</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1616</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When running &quot;doctrine orm:schema-tool:create --dump-sql&quot; it should not omit the semicolon of the last SQL statement (though the current SQL output is also valid and executable) and it should omit the ATTENTION line (or output it as an SQL commented line) as the schema isn&apos;t applied/created anyways.&lt;/p&gt;

&lt;p&gt;This would make it much easier to write for e.g. the SQL schema to a file for further processing; but might also break systems (e.g. buildsystems) which have a workaround for the above mentioned shortcoming.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13382">DDC-1616</key>
            <summary>SchemaTool - CreateCommand should dump &quot;valid&quot; SQL and omit ATTENTION line</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="raphaelstolt">Raphael Stolt</reporter>
                        <labels>
                    </labels>
                <created>Tue, 24 Jan 2012 10:46:15 +0000</created>
                <updated>Wed, 22 Feb 2012 06:19:20 +0000</updated>
                    <resolved>Wed, 22 Feb 2012 06:19:20 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17476" author="guilhermeblanco" created="Wed, 22 Feb 2012 06:19:20 +0000"  >&lt;p&gt;Fixed by &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/48dcee9d60459fce1542d11536d465f5d89cff55&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/48dcee9d60459fce1542d11536d465f5d89cff55&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11154" name="fix_execute_schema_command.patch" size="1627" author="raphaelstolt" created="Tue, 24 Jan 2012 10:46:15 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-807] Adding columnDefinition for @DiscriminatorColumn</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-807</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Current @DiscriminatorColumn does not allow to use a specific column definition. However, in the MySQL world it is quite common to use the ENUM or TINYINT datatype for efficient discriminator columns. It would be great if something like this would be possible:&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;@DiscriminatorColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;member_type&quot;&lt;/span&gt;,type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;,columnDefinition=&lt;span class=&quot;code-quote&quot;&gt;&quot;ENUM(&apos;ANONYMOUS&apos;,&apos;FREE&apos;,&apos;PREMIUM&apos;)&quot;&lt;/span&gt;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="11924">DDC-807</key>
            <summary>Adding columnDefinition for @DiscriminatorColumn</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="lstrojny">Lars Strojny</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Sep 2010 16:33:00 +0000</created>
                <updated>Tue, 14 Feb 2012 18:28:31 +0000</updated>
                    <resolved>Tue, 14 Feb 2012 18:28:31 +0000</resolved>
                            <version>2.0-BETA4</version>
                                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="14400" author="beberlei" created="Wed, 15 Sep 2010 17:05:18 +0000"  >&lt;p&gt;How is ENUM efficient? Its a very bad datatype in my opinion with its sorting strangeness and alter table overhead &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/wink.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="14405" author="lstrojny" created="Thu, 16 Sep 2010 12:18:21 +0000"  >&lt;p&gt;The alternative with MySQL is TINYINT, which has the drawback of not being self documenting but also works. But this won&apos;t be possible with discriminator columns too.&lt;/p&gt;</comment>
                    <comment id="14411" author="mjh_ca" created="Fri, 17 Sep 2010 07:32:26 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-553&quot; title=&quot;Should @DiscriminatorColumn support columnDefinition attribute just like @Column ?&quot;&gt;&lt;del&gt;DDC-553&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17425" author="guilhermeblanco" created="Tue, 14 Feb 2012 18:28:31 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;

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

<item>
            <title>[DDC-1412] DriverChain defaultDriver</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1412</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The \Doctrine\ORM\Mapping\Driver\DriverChain is a good thing, but a default driver should be a another great thing.&lt;/p&gt;

&lt;p&gt;Actually, to use DoctrineExtension Translatable I have to use the DriveChain to add a specific driver for Gedmo\Translatable.&lt;br/&gt;
The problem is, that I have to define the same EntityDriver on all my entity in this driver.&lt;/p&gt;

&lt;p&gt;$driverChain-&amp;gt;addDriver ($entityDriver,			&apos;EntityA&apos;);&lt;br/&gt;
...&lt;br/&gt;
$driverChain-&amp;gt;addDriver ($entityDriver,			&apos;EntityB&apos;);&lt;br/&gt;
$driverChain-&amp;gt;addDriver ($translatableDriver, 	&apos;Gedmo\Translatable&apos;);&lt;/p&gt;

&lt;p&gt;It would be really friendly to do&lt;br/&gt;
$driverChain-&amp;gt;setDefaultDriver ($entityDriver);&lt;br/&gt;
$driverChain-&amp;gt;addDriver ($translatableDriver, 	&apos;Gedmo\Translatable&apos;);&lt;/p&gt;

&lt;p&gt;I have attach a fix (SVN) for the DriveChain class.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13077">DDC-1412</key>
            <summary>DriverChain defaultDriver</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="armetiz">Thomas Tourlourat - Armetiz</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Oct 2011 15:06:49 +0000</created>
                <updated>Sun, 29 Jan 2012 00:50:05 +0000</updated>
                    <resolved>Sat, 28 Jan 2012 20:55:15 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17351" author="fabio.bat.silva" created="Sun, 29 Jan 2012 00:50:05 +0000"  >&lt;p&gt;Fixed in : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/16b22f0f3138ad607ccecd9397d0ec267d6cc478&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/16b22f0f3138ad607ccecd9397d0ec267d6cc478&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11071" name="driverchain.patch" size="1904" author="armetiz" created="Tue, 11 Oct 2011 15:06:49 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1606] Added fix for collection-&gt;contains with many-to-many extra lazy fetchMode</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1606</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;That case previously triggered a PHP error along the lines 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;Notice: Undefined index: 0000000062a3a7690000000033c91b26 in doctrine/lib/Doctrine/ORM/UnitOfWork.php line 2202
#0 doctrine/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php(267): Doctrine\ORM\UnitOfWork-&amp;gt;getEntityIdentifier(&lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Item))
#1 doctrine/lib/Doctrine/ORM/PersistentCollection.php(411): Doctrine\ORM\Persisters\ManyToManyPersister-&amp;gt;contains(&lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Doctrine\ORM\PersistentCollection), &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Item))
#2 Test.php(71): Doctrine\ORM\PersistentCollection-&amp;gt;contains(&lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;(Item))
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Associated PR: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/259&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/259&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13367">DDC-1606</key>
            <summary>Added fix for collection-&gt;contains with many-to-many extra lazy fetchMode</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="guilhermeblanco">Guilherme Blanco</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 Jan 2012 03:50:37 +0000</created>
                <updated>Sun, 22 Jan 2012 17:35:27 +0000</updated>
                    <resolved>Tue, 17 Jan 2012 03:51:36 +0000</resolved>
                                            <fixVersion>2.2.0-RC1</fixVersion>
                <fixVersion>2.2</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17294" author="guilhermeblanco" created="Tue, 17 Jan 2012 03:51:36 +0000"  >&lt;p&gt;Merged in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/c1012f79706491e9dbf6c8741225b62833c6d2ce&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/c1012f79706491e9dbf6c8741225b62833c6d2ce&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1603] Unique key name isn&apos;t correctly set</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1603</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Example :&lt;/p&gt;

&lt;p&gt;&amp;lt;unique-constraints&amp;gt;&lt;br/&gt;
        &amp;lt;unique-constraint columns=&quot;permalink&quot; /&amp;gt;&lt;br/&gt;
        &amp;lt;unique-constraint columns=&quot;code&quot; /&amp;gt;&lt;br/&gt;
&amp;lt;/unique-constraints&amp;gt;&lt;/p&gt;

&lt;p&gt;This will create : &lt;br/&gt;
CREATE UNIQUE INDEX UNIQ_6C3BF144F286BC32 ON shows (permalink);&lt;br/&gt;
CREATE UNIQUE INDEX 1 ON shows (code);&lt;/p&gt;

&lt;p&gt;instead of :&lt;br/&gt;
CREATE UNIQUE INDEX UNIQ_6C3BF144F286BC32 ON shows (permalink);&lt;br/&gt;
CREATE UNIQUE INDEX UNIQ_6C3BF14477153098 ON shows (code);&lt;/p&gt;

&lt;p&gt;The problem comme from SchemaTool, and the first key is a valid result because of &quot;==&quot; instead of &quot;===&quot; inside Table.php.&lt;/p&gt;

&lt;p&gt;I have create a PR on Github.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13364">DDC-1603</key>
            <summary>Unique key name isn&apos;t correctly set</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="armetiz">Thomas Tourlourat - Armetiz</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Jan 2012 09:21:49 +0000</created>
                <updated>Sun, 22 Jan 2012 17:34:28 +0000</updated>
                    <resolved>Tue, 17 Jan 2012 03:44:57 +0000</resolved>
                            <version>2.2-BETA2</version>
                                <fixVersion>2.1.6</fixVersion>
                <fixVersion>2.2.0-RC1</fixVersion>
                <fixVersion>2.2</fixVersion>
                <fixVersion>2.3</fixVersion>
                                <component>Tools</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17282" author="armetiz" created="Mon, 16 Jan 2012 09:25:50 +0000"  >&lt;p&gt;Here the PR for the ORM SchemaTool : &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/261&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/261&lt;/a&gt;&lt;br/&gt;
Here the PR for the DBAL Table : &lt;a href=&quot;https://github.com/doctrine/dbal/pull/94&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/94&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17293" author="guilhermeblanco" created="Tue, 17 Jan 2012 03:44:57 +0000"  >&lt;p&gt;Merged &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/2bb511584e5d37ddad6c669a19d8e6b4a20f7b2b&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/2bb511584e5d37ddad6c669a19d8e6b4a20f7b2b&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17322" author="beberlei" created="Sat, 21 Jan 2012 14:34:56 +0000"  >&lt;p&gt;DBAL merged back into 2.2 and 2.1.x&lt;/p&gt;</comment>
                    <comment id="17323" author="beberlei" created="Sat, 21 Jan 2012 14:38:02 +0000"  >&lt;p&gt;and Merged into 2.2 and 2.1.x ORM&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1529] Multiple FROM Entities and inheritance</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1529</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I got a single table inheritance on an object Content (Program, Article, etc...)&lt;/p&gt;

&lt;p&gt;when try a simple :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$query = $this-&amp;gt;_em-&amp;gt;createQuery(&apos;&lt;br/&gt;
          SELECT a, p&lt;br/&gt;
          FROM SG\CmsBundle\Entity\Article a, SG\ProgramBundle\Entity\Program p&apos;);&lt;br/&gt;
     $query-&amp;gt;getResult();&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The generated sql is :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;SELECT s0_.id AS id0, s0_.title AS title1, s0_.description AS description2, s0_.tags AS tags3, s0_.keywords AS keywords4, s0_.robots AS robots5, s0_.author_name AS author_name6, s0_.fb_description AS fb_description7, s0_.type AS type8, s0_.is_active AS is_active9, s0_.is_deleted AS is_deleted10, s0_.is_published AS is_published11, s0_.published_at AS published_at12, s0_.unpublished_at AS unpublished_at13, s0_.slug AS slug14, s0_.created_at AS created_at15, s0_.updated_at AS updated_at16, s0_.lft AS lft17, s0_.rgt AS rgt18, s0_.root AS root19, s0_.lvl AS lvl20, s1_.id AS id21, s1_.title AS title22, s1_.description AS description23, s1_.tags AS tags24, s1_.keywords AS keywords25, s1_.robots AS robots26, s1_.author_name AS author_name27, s1_.fb_description AS fb_description28, s1_.type AS type29, s1_.is_active AS is_active30, s1_.is_deleted AS is_deleted31, s1_.is_published AS is_published32, s1_.published_at AS published_at33, s1_.unpublished_at AS unpublished_at34, s1_.slug AS slug35, s1_.created_at AS created_at36, s1_.updated_at AS updated_at37, s1_.lft AS lft38, s1_.rgt AS rgt39, s1_.root AS root40, s1_.lvl AS lvl41, s0_.kind AS kind42, s0_.parent_id AS parent_id43, s0_.template_article_id AS template_article_id44, s0_.template_page_id AS template_page_id45, s0_.author_id AS author_id46, s1_.kind AS kind47, s1_.parent_id AS parent_id48, s1_.template_article_id AS template_article_id49, s1_.template_page_id AS template_page_id50, s1_.author_id AS author_id51 FROM sg_content s0_, sg_content s1_ WHERE (s0_.kind IN (&apos;Article&apos;) AND AND s1_.kind IN (&apos;Program&apos;))&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The only problem is, we got an extra AND at the end of the query, the query should look smthin like this :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;SELECT  ... WHERE (s0_.kind IN (&apos;Article&apos;) AND s1_.kind IN (&apos;Program&apos;))&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment>Symfony 2</environment>
            <key id="13253">DDC-1529</key>
            <summary>Multiple FROM Entities and inheritance</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="lutangar">Johan Dufour</reporter>
                        <labels>
                    </labels>
                <created>Mon, 12 Dec 2011 17:00:27 +0000</created>
                <updated>Thu, 19 Jan 2012 04:49:40 +0000</updated>
                    <resolved>Thu, 19 Jan 2012 04:49:40 +0000</resolved>
                            <version>2.1.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>DQL</component>
                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17308" author="guilhermeblanco" created="Thu, 19 Jan 2012 04:49:40 +0000"  >&lt;p&gt;Invalid for 2.2. I couldn&apos;t track the exact commit this was fixed, so I&apos;ll keep fix version for 2.3.&lt;br/&gt;
Coverage commit reference: &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/febfe35c2315a20534630aa9e5b9c72a0047f569&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/febfe35c2315a20534630aa9e5b9c72a0047f569&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1608] Lazy load more restrict when consuming PersistentCollection trigger actions to *Persisters</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1608</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Since &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/259&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/259&lt;/a&gt; we identified an issue with the Persisters that are failing to check for entities that exist in UoW (managed and sched for insert) and are now being checked is they are part of Collection.&lt;br/&gt;
Also it missed some tests. It should be easy, just -&amp;gt;persist the entity then triggers Collection actions.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13369">DDC-1608</key>
            <summary>Lazy load more restrict when consuming PersistentCollection trigger actions to *Persisters</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="guilhermeblanco">Guilherme Blanco</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 Jan 2012 15:40:33 +0000</created>
                <updated>Wed, 18 Jan 2012 19:18:35 +0000</updated>
                    <resolved>Wed, 18 Jan 2012 06:02:52 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17297" author="guilhermeblanco" created="Wed, 18 Jan 2012 06:02:52 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/d39760ba49418f42f235e9befe223896f11de4bd&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/d39760ba49418f42f235e9befe223896f11de4bd&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17302" author="beberlei" created="Wed, 18 Jan 2012 19:18:35 +0000"  >&lt;p&gt;Merged back to 2.2&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1598] ProxyFactory makes assumptions on identifier getter code</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1598</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;As of &lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L214&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L214&lt;/a&gt;&lt;br/&gt;
and&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L237&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Proxy/ProxyFactory.php#L237&lt;/a&gt;&lt;br/&gt;
the current ProxyFactory isn&apos;t actually checking if the identifier getter has logic in it.&lt;br/&gt;
Current checks aren&apos;t enough/valid.&lt;/p&gt;

&lt;p&gt;In my opinion the check should be matching following:&lt;/p&gt;

&lt;p&gt;(public|protected)\s+function\s+getFieldname\s*&amp;#40;\s*&amp;#41;\s+&lt;/p&gt;
{\s*\$this\s*-&amp;gt;Fieldname\s*;\s*}

&lt;p&gt;Not really experienced with regex, but currently cannot come up with a more secure check.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13356">DDC-1598</key>
            <summary>ProxyFactory makes assumptions on identifier getter code</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="ocramius">Marco Pivetta</reporter>
                        <labels>
                    </labels>
                <created>Fri, 13 Jan 2012 17:28:03 +0000</created>
                <updated>Mon, 16 Jan 2012 09:56:15 +0000</updated>
                    <resolved>Mon, 16 Jan 2012 08:28:11 +0000</resolved>
                            <version>2.0</version>
                <version>2.0.1</version>
                <version>2.0.2</version>
                <version>2.0.3</version>
                <version>2.0.4</version>
                <version>2.0.5</version>
                <version>2.0.6</version>
                <version>2.0.7</version>
                <version>2.1</version>
                <version>2.1.1</version>
                <version>2.1.2</version>
                <version>2.1.3</version>
                <version>2.1.4</version>
                <version>2.1.5</version>
                <version>2.2-BETA1</version>
                <version>2.2-BETA2</version>
                <version>Git Master</version>
                                <fixVersion>2.2</fixVersion>
                <fixVersion>2.3</fixVersion>
                <fixVersion>2.x</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17247" author="beberlei" created="Sun, 15 Jan 2012 11:19:31 +0000"  >&lt;p&gt;Can you explain why you think this is necessary?&lt;/p&gt;

&lt;p&gt;You are right an id method with logic could exist in 4 lines of code, but for what purpose? &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="17250" author="ocramius" created="Sun, 15 Jan 2012 12:40:31 +0000"  >&lt;p&gt;First of all it is a question of concept. Doctrine &lt;b&gt;shouldn&apos;t&lt;/b&gt; assume anything about entities outside of their fields. It already introduces a level of complication when we explain how to clone/serialize objects, which was very confusing.&lt;/p&gt;

&lt;p&gt;Asking for the purpose of an identifier field getter method is in my opinion again an attempt of making assumptions over user&apos;s code...&lt;/p&gt;

&lt;p&gt;What if the user wrote something like:&lt;/p&gt;

&lt;p&gt;public function getIdentifierField1()&lt;br/&gt;
 {&lt;br/&gt;
    return $this-&amp;gt;identifierField1? $this-&amp;gt;_myInitializationStuff() : null;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;private function _myInitializationStuff() &lt;br/&gt;
{&lt;br/&gt;
    //open files, check stuff, make things difficult for the D2 team &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/biggrin.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;For instance, opening file handlers, sockets, whatever... This is a case that would break the entity because of optimization introduced by the ProxyFactory. (not to mention when getIdentifierField1 does some conversion, like return $this-&amp;gt;identifierField1 + self::OFFSET_REQUIRED_BY_WEBSERVICE;&lt;/p&gt;

&lt;p&gt;I&apos;m not arguing about the validity of this optimization, but that the checks are too lazy.&lt;/p&gt;

&lt;p&gt;I&apos;ve read something about moving the ProxyFactory to common and using code scanner tools, and the check should be about applying the optimization only when the form is&lt;/p&gt;

&lt;p&gt;return $this-&amp;gt;identifierField1;&lt;/p&gt;

&lt;p&gt;That&apos;s why I put the example of the regex. That would probably not be as safe as using some reflection-based tool, but surely more than just checking if the code is &amp;lt;= 4 lines...&lt;/p&gt;</comment>
                    <comment id="17251" author="ocramius" created="Sun, 15 Jan 2012 13:03:58 +0000"  >&lt;p&gt;Also don&apos;t know what stuff like EAccelerator (known in this Jira as of it&apos;s fantastic idea about stripping comments) would make the check of the 4 lines like.&lt;/p&gt;</comment>
                    <comment id="17280" author="beberlei" created="Mon, 16 Jan 2012 08:28:03 +0000"  >&lt;p&gt;This argument is void i just seen&lt;/p&gt;

&lt;p&gt;A 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 getIdentifierField1()
{
   &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;identifierField1? $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_myInitializationStuff() : &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
} 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Will only used when the id is not set anyways.&lt;/p&gt;

&lt;p&gt;In any other case Ids are Immutable and changing them in your code would break a lot more than just this smart proxy method generation.&lt;/p&gt;</comment>
                    <comment id="17283" author="ocramius" created="Mon, 16 Jan 2012 09:28:51 +0000"  >&lt;p&gt;Nope, this code actually works only if the ID &lt;b&gt;is&lt;/b&gt; set &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;br/&gt;
I&apos;m not talking about changing IDs, it&apos;s just that getters and setters don&apos;t always reflect the class attributes...&lt;/p&gt;</comment>
                    <comment id="17284" author="ocramius" created="Mon, 16 Jan 2012 09:56:15 +0000"  >&lt;p&gt;As of IRC there&apos;s 3 ways (for now) to get this solved:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Some code scanner/stronger checks (difficult/problems with private methods/slow)&lt;/li&gt;
	&lt;li&gt;Regex (as of description)&lt;/li&gt;
	&lt;li&gt;Adding configuration (per-entity or per-method. Probably too messy)&lt;/li&gt;
	&lt;li&gt;Documenting it as &quot;magic&quot; of proxies and let the users be aware of it&lt;/li&gt;
&lt;/ul&gt;
</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-657] DateTime objects casted to string in query results</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-657</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;As we read in the documentation, &apos;datetime&apos; fields are casted by Doctrine to PHP DateTime class objects. However, when we want to get only certain fields from a table using DQL, Doctrine casts the datetime value to ordinary string. Consider the following example:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;Column definition&lt;/b&gt;&lt;/div&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; DateTime $active
 *
 * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;registered&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;datetime&quot;&lt;/span&gt;)
 */
&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $registered;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;Query&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;var_dump($em-&amp;gt;createQuery(&apos;SELECT u.id, u.registered FROM Entities\\User u&apos;)-&amp;gt;getResult());
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Expected result:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;The returned row contains DateTime object for &apos;registered&apos; column.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Actual result:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;The returned row contains string for &apos;registered&apos; column.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;If this is an intended feature, first of all, it should be clearly pointed in the documentation that Doctrine types do not apply in such situations, and secondly, I think it is a very bad practice. I use Doctrine and tell him I have a datetime field in order to get Datetime objects automatically, not to deal with manual conversions.&lt;/p&gt;</description>
                <environment>Linux, PostgreSQL 8.4</environment>
            <key id="11558">DDC-657</key>
            <summary>DateTime objects casted to string in query results</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="zyxist">Tomasz J&#281;drzejewski</reporter>
                        <labels>
                    </labels>
                <created>Sun, 27 Jun 2010 06:15:22 +0000</created>
                <updated>Sat, 14 Jan 2012 14:59:35 +0000</updated>
                    <resolved>Sat, 14 Jan 2012 14:59:35 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="13423" author="beberlei" created="Sun, 27 Jun 2010 07:41:07 +0000"  >&lt;p&gt;oh wait, i am just now looking at your query, you are retrieving the values as scalar fields, that is something totally different. Let me check the code on this issue.&lt;/p&gt;</comment>
                    <comment id="13424" author="zyxist" created="Sun, 27 Jun 2010 08:10:39 +0000"  >&lt;p&gt;ORM - the newest one from Git. I couldn&apos;t find any matching version in the issue form, so I selected nothing.&lt;br/&gt;
DBAL - the version that currently works with ORM. I&apos;ve already noticed that DBAL-master does not work with the newest ORM &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="13431" author="beberlei" created="Sun, 27 Jun 2010 13:35:02 +0000"  >&lt;p&gt;Ok the problem is that currently scalar values retrieved from a DQL query are not converted to their PHP value. This affects scalar values only, if you rewrite the query to:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;SELECT u FROM Entities\User u
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;you will get the Entities\User class with a DateTime instance in the &quot;registered&quot; variable.&lt;/p&gt;</comment>
                    <comment id="13438" author="zyxist" created="Mon, 28 Jun 2010 14:16:58 +0000"  >&lt;p&gt;So far, I simply added a manual conversion that checks if the object was returned or not, so it will still work once the bug is fixed. In my case, sometimes I prefer to retrieve certain columns only, because the entire row can be quite big.&lt;/p&gt;</comment>
                    <comment id="13492" author="beberlei" created="Thu, 1 Jul 2010 18:49:31 +0000"  >&lt;p&gt;I think we should really fix this using an additional bit of information on the ResultSetMapping to hint the hydrators which type a scalar value is, if its an entity field, otherwise do nothing in conversion.&lt;/p&gt;

&lt;p&gt;Array or Object fields, or even complex objects and serialization structs are pretty useless otherewise &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="13820" author="romanb" created="Sat, 7 Aug 2010 07:16:40 +0000"  >&lt;p&gt;Scheduled for 2.1 for now.&lt;/p&gt;</comment>
                    <comment id="14385" author="beberlei" created="Wed, 15 Sep 2010 14:14:01 +0000"  >&lt;p&gt;Convert to feature (from bug)&lt;/p&gt;</comment>
                    <comment id="15880" author="javol" created="Tue, 24 May 2011 23:30:29 +0000"  >&lt;p&gt;I&apos;m observing this problem on ORM 2.0.3 package with MySQL database and I would really expect this conversion to be implicit.&lt;br/&gt;
The Docs (12.7.1. Query Result Formats) says:&lt;/p&gt;

&lt;p&gt;&lt;cite&gt;Query#getArrayResult(): Retrieves an array graph (a nested array) that is largely interchangeable with the object graph generated by Query#getResult() for read-only purposes.&lt;/cite&gt;&lt;/p&gt;

&lt;p&gt;But it is not interchangeable at all.&lt;/p&gt;

&lt;p&gt;Anyway: It can potentially be an issue when dealing with timezones as the as it exposes the date in it&apos;s original format stored in DB, eventually without timezone on most DB engines. To interpret the such date the same way as Doctrine when hydrating to Object, one would need to know what timezone uses doctrine to interpret the DB timestamps without timezone.&lt;/p&gt;</comment>
                    <comment id="17233" author="guilhermeblanco" created="Fri, 13 Jan 2012 06:01:00 +0000"  >&lt;p&gt;We have a nearly done PR for this issue: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/251&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/251&lt;/a&gt;&lt;br/&gt;
As soon as Fabio changes the pointed optimizations, this issue will be closed.&lt;/p&gt;</comment>
                    <comment id="17243" author="fabio.bat.silva" created="Sat, 14 Jan 2012 14:59:35 +0000"  >&lt;p&gt;Fixed since this commit : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/ea14bcff4a2a78bf774e8847b6645dca112f9757&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/ea14bcff4a2a78bf774e8847b6645dca112f9757&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1596] Discriminator column has no table alias</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1596</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Some single table inheritance&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Resource.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * @Orm\Entity
 * @Orm\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;resource&quot;&lt;/span&gt;)
 * @Orm\InheritanceType(&lt;span class=&quot;code-quote&quot;&gt;&quot;SINGLE_TABLE&quot;&lt;/span&gt;)
 * @Orm\DiscriminatorColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;)
 * @Orm\DiscriminatorMap({&lt;span class=&quot;code-quote&quot;&gt;&quot;Container&quot;&lt;/span&gt; = &lt;span class=&quot;code-quote&quot;&gt;&quot;Container&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;News&quot;&lt;/span&gt;=&lt;span class=&quot;code-quote&quot;&gt;&quot;News&quot;&lt;/span&gt;})
 */
&lt;span class=&quot;code-keyword&quot;&gt;abstract&lt;/span&gt; class Resource
{
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;$em-&amp;gt;getRepository(&apos;News&apos;)-&amp;gt;find($id)
/**
* generate SQL like &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;: 
* SELECT t0.id AS id1, t0.name AS name2, type FROM resource t0 WHERE t0.id = ? AND t0.type IN (&apos;News&apos;)
*/
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Column &lt;b&gt;type&lt;/b&gt; has no table alias.&lt;br/&gt;
I expected SQL 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;SELECT t0.id AS id1, t0.name AS name2, t0.type FROM resource t0 WHERE t0.id = ? AND t0.type IN (&apos;News&apos;)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Proposed patch attached&lt;/p&gt;</description>
                <environment></environment>
            <key id="13353">DDC-1596</key>
            <summary>Discriminator column has no table alias</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="ghennady">Gandzy Ghennady</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Jan 2012 09:26:57 +0000</created>
                <updated>Fri, 13 Jan 2012 04:56:41 +0000</updated>
                    <resolved>Fri, 13 Jan 2012 04:56:41 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="17230" author="guilhermeblanco" created="Fri, 13 Jan 2012 04:56:41 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/bb1021198355871bd78b19c7795900be0020520b&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/bb1021198355871bd78b19c7795900be0020520b&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11144" name="SingleTablePersister.diff" size="1098" author="ghennady" created="Wed, 11 Jan 2012 09:26:57 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1379] Entity Generator Bug with extended classes</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1379</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I&apos;m presently using Doctrine 2 in conjunction with Symfony 2 and have come across a bug with the Entity Generator when I&apos;m extending an abstract class. Here&apos;s a minor example to demonstrate (please note, any annotations problems or typos are a result of my typing in this ticket. This isn&apos;t an actual example, but does accurately show how to reproduce the issue)&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;Foo.php&lt;/b&gt;&lt;/div&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;abstract&lt;/span&gt; class Foo
{
    /**
     * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;first_name&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $firstName;

     /**
     * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;last_name&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $lastName;
    /**
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;is_active&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $isActive;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;Bar.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * @Entity
 */
class Bar &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Foo
{
    /**
     * @Id
     * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     * @GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /**
     * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;created_at&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;datetime&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $createdAt;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Using a setup similar to the above, where Bar extends Foo, there is an issue with the Generator. &lt;/p&gt;

&lt;p&gt;1) The generator is redeclaring Foo&apos;s properties, as private variables, in Bar&lt;/p&gt;

&lt;p&gt;So, opening Bar after running the generator, shows the getters and setters, but shows:&lt;br/&gt;
private $firstName;&lt;br/&gt;
private $lastName;&lt;br/&gt;
private $isActive;&lt;/p&gt;

&lt;p&gt;This causes issues because the properties are being recreated as local versions, and their scope is set to private, conflicted with the more open protected version in the abstract class.  To me, they shouldn&apos;t be placed in Bar because they&apos;re declared as protected in Foo and thus Bar has access to them.  Also, when they are placed in Bar, the file formatting is messed up around them, suggesting that they were mis-placed in the file.&lt;/p&gt;

&lt;p&gt;2) This may or may not be a bug (it may be intended behavior), but... I would think that when running the generator, the getters and setters for the protected properties declared in Foo would be placed in Foo, and not placed in the class(es) that extend Foo (in this case, Bar).  If I also have a class Baz that extends Foo, then Bar and Baz will now have copies of the same getFirstName(), getLastName(), and getIsActive() methods, which is unneeded. They can be placed in the parent class, and overridden in the subclasses if more/different functionality/behavior is needed by the subclass.&lt;/p&gt;

&lt;p&gt;Hopefully this is a clear example. Please feel free to hit me up for more info!&lt;br/&gt;
--mark&lt;/p&gt;</description>
                <environment></environment>
            <key id="13022">DDC-1379</key>
            <summary>Entity Generator Bug with extended classes</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="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mbadolato">Mark Badolato</reporter>
                        <labels>
                    </labels>
                <created>Fri, 16 Sep 2011 21:23:50 +0000</created>
                <updated>Mon, 9 Jan 2012 14:11:41 +0000</updated>
                    <resolved>Mon, 9 Jan 2012 14:11:41 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16728" author="cvschaefer" created="Sun, 30 Oct 2011 16:42:11 +0000"  >&lt;p&gt;I can confirm this behavior.&lt;/p&gt;

&lt;p&gt;Before generation:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Foo&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * @ORM\Entity
 * @ORM\HasLifecycleCallbacks
 *
 * @ORM\InheritanceType(&lt;span class=&quot;code-quote&quot;&gt;&quot;JOINED&quot;&lt;/span&gt;)
 * @ORM\DiscriminatorColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;discr&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;)
 * @ORM\DiscriminatorMap({&lt;span class=&quot;code-quote&quot;&gt;&quot;foo_bar&quot;&lt;/span&gt; = &lt;span class=&quot;code-quote&quot;&gt;&quot;FooBar&quot;&lt;/span&gt;})
 */
class Foo
{

    /**
     * @ORM\Id
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

    /**
     * creation date
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;created_at&quot;&lt;/span&gt;,type=&lt;span class=&quot;code-quote&quot;&gt;&quot;datetime&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $createdAt;

    /**
     * getCreatedAt
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; \DateTime
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getCreatedAt()
    {
        &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;createdAt;
    }

    /**
     * Set the creation date
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setCreatedAt(\DateTime $createdAt)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;createdAt = $createdAt;
    }

    /**
     * @ORM\PrePersist
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function prePersist()
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;createdAt = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \DateTime();
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;FooBar&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * @ORM\Entity
 */
class FooBar &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Foo {

    /**
     *
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=255)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $title;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;after generation of FooBar:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;FooBar&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * @ORM\Entity
 */
class FooBar &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Foo {

    /**
     *
     * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=255)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $title;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer $id
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; datetime $createdAt
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $createdAt;

    /**
     * Set title
     *
     * @param string $title
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setTitle($title)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;title = $title;
    }

    /**
     * Get title
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; string 
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getTitle()
    {
        &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;title;
    }

    /**
     * Get id
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; integer 
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getId()
    {
        &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;id;
    }

    /**
     * Set createdAt
     *
     * @param datetime $createdAt
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setCreatedAt($createdAt)
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;createdAt = $createdAt;
    }

    /**
     * Get createdAt
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; datetime 
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getCreatedAt()
    {
        &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;createdAt;
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It looks like the generator doesn&apos;t check if an attribute is inherited and therefore is already defined.&lt;br/&gt;
If an attribute is found as inherited, the generation of the attribute, accessor and mutator should be skipped.&lt;/p&gt;

&lt;p&gt;This bug is really annoying, especially when working with bigger objects.&lt;/p&gt;

&lt;p&gt;Tested within Symfony2 v2.0.4&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;doctrine-common]
    git=http:&lt;span class=&quot;code-comment&quot;&gt;//github.com/doctrine/common.git
&lt;/span&gt;    version=2.1.2

[doctrine-dbal]
    git=http:&lt;span class=&quot;code-comment&quot;&gt;//github.com/doctrine/dbal.git
&lt;/span&gt;    version=2.1.3

[doctrine]
    git=http:&lt;span class=&quot;code-comment&quot;&gt;//github.com/doctrine/doctrine2.git
&lt;/span&gt;    version=2.1.2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;-Chris&lt;/p&gt;

</comment>
                    <comment id="17204" author="beberlei" created="Mon, 9 Jan 2012 14:11:41 +0000"  >&lt;p&gt;As per the help message of the entity generation inheritance generation is not yet supported and will not work.&lt;/p&gt;

&lt;p&gt;Its planned for 2.3.&lt;/p&gt;

&lt;p&gt;Follow &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1590&quot; title=&quot;Fix Inheritance in Code-Generation&quot;&gt;DDC-1590&lt;/a&gt; for current information.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1561] GH-239: Fix $qb-&gt;expr() PHPDoc @return type.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1561</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/239&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/239&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The autocompletion was missing so i was sad.&lt;/p&gt;

&lt;p&gt;But hey, it&apos;s open source!&lt;/p&gt;</description>
                <environment></environment>
            <key id="13301">DDC-1561</key>
            <summary>GH-239: Fix $qb-&gt;expr() PHPDoc @return type.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Dec 2011 16:07:04 +0000</created>
                <updated>Tue, 3 Jan 2012 21:53:35 +0000</updated>
                    <resolved>Wed, 28 Dec 2011 07:49:25 +0000</resolved>
                                            <fixVersion>2.1.6</fixVersion>
                <fixVersion>2.2-BETA2</fixVersion>
                <fixVersion>2.2</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17119" author="beberlei" created="Wed, 28 Dec 2011 07:49:25 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1572] LIKE expressions doesn&apos;t allow the matching pattern to be a string function</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1572</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Like expressions doesn&apos;t allow the matching apttern to be a function returning string like LOWER(column) LIKE LOWER(:param)&lt;/p&gt;

&lt;p&gt;Query parsers is returning exception like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Syntax Error&amp;#93;&lt;/span&gt; line 0, col 82: Error: Expected Doctrine\ORM\Query\Lexer::T_STRING, got &apos;LOWER&apos;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;It is not possible to construct queries like this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;            SELECT u.name FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE UPPER(u.name) LIKE UPPER(:str)&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I&apos;ll create a pull request on github for this issue.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13319">DDC-1572</key>
            <summary>LIKE expressions doesn&apos;t allow the matching pattern to be a string function</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="adrive">Miloslav &quot;adrive&quot; Kmet</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Dec 2011 12:31:32 +0000</created>
                <updated>Sat, 31 Dec 2011 10:28:29 +0000</updated>
                    <resolved>Sat, 31 Dec 2011 10:28:15 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17139" author="beberlei" created="Thu, 29 Dec 2011 13:16:35 +0000"  >&lt;p&gt;Assigned to Guilherme&lt;/p&gt;</comment>
                    <comment id="17140" author="beberlei" created="Thu, 29 Dec 2011 15:14:04 +0000"  >&lt;p&gt;This issue is referenced in Github Pull-Request GH-245&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/245&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/245&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17160" author="beberlei" created="Sat, 31 Dec 2011 10:28:15 +0000"  >&lt;p&gt;This was merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1557] SimpleSelectExpression does not accept DQL functions</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1557</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;SELECT m 
FROM MealBundle:Meal m 
WHERE m.user = :user OR m.user IN (
    SELECT IDENTITY(s.to) 
    FROM SubscriptionBundle:Subscription s 
    WHERE s.from = :user
)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Syntax Error&amp;#93;&lt;/span&gt; line 0, col 82: Error: Expected Doctrine\ORM\Query\Lexer::T_FROM, got &apos;(&apos;&lt;/tt&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13295">DDC-1557</key>
            <summary>SimpleSelectExpression does not accept DQL functions</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="elnur">Elnur Abdurrakhimov</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Dec 2011 22:18:26 +0000</created>
                <updated>Thu, 29 Dec 2011 19:23:20 +0000</updated>
                    <resolved>Thu, 29 Dec 2011 19:23:20 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17145" author="beberlei" created="Thu, 29 Dec 2011 16:57:04 +0000"  >&lt;p&gt;This issue is referenced in Github Pull-Request GH-246&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/246&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/246&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17147" author="beberlei" created="Thu, 29 Dec 2011 19:23:04 +0000"  >&lt;p&gt;Related Pull Request was closed: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/246&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/246&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17148" author="guilhermeblanco" created="Thu, 29 Dec 2011 19:23:20 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/e43897916a001b6fe9cd8df27d6c9c272f41c854&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/e43897916a001b6fe9cd8df27d6c9c272f41c854&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1185] Make default column naming strategy configurable</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1185</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Right now, the property name is simply taken as column name. It would be nice if this default naming strategy were made configurable, so that you could plugin for example a camel-cased underscored naming strategy.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12684">DDC-1185</key>
            <summary>Make default column naming strategy configurable</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="johannes">Johannes Schmitt</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 May 2011 20:21:55 +0000</created>
                <updated>Thu, 29 Dec 2011 17:14:41 +0000</updated>
                    <resolved>Thu, 29 Dec 2011 17:14:41 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17146" author="fabio.bat.silva" created="Thu, 29 Dec 2011 17:14:41 +0000"  >&lt;p&gt;FIxed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/abb258c951dd416fc5325ef548d15c7acd35703e&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/abb258c951dd416fc5325ef548d15c7acd35703e&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1550] GH-234: Fix QueryTest#testJoinQueries order</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1550</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/234&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/234&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I don&apos;t know why, but sometimes postgres change the order by column default.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://travis-ci.org/#!/doctrine/doctrine2/jobs/428335&quot; class=&quot;external-link&quot;&gt;http://travis-ci.org/#!/doctrine/doctrine2/jobs/428335&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I just add ORDER BY, I think that fix the problem. &lt;/p&gt;</description>
                <environment></environment>
            <key id="13285">DDC-1550</key>
            <summary>GH-234: Fix QueryTest#testJoinQueries order</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>Tue, 20 Dec 2011 18:55:04 +0000</created>
                <updated>Wed, 28 Dec 2011 07:52:23 +0000</updated>
                    <resolved>Wed, 28 Dec 2011 07:52:23 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1562] GH-240: fix QueryDqlFunctionTest#testFunctionSubstring order</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1562</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/240&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/240&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I got the same problem of #234&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://travis-ci.org/#!/FabioBatSilva/doctrine2/jobs/441187&quot; class=&quot;external-link&quot;&gt;http://travis-ci.org/#!/FabioBatSilva/doctrine2/jobs/441187&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13303">DDC-1562</key>
            <summary>GH-240: fix QueryDqlFunctionTest#testFunctionSubstring order</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Dec 2011 17:07:05 +0000</created>
                <updated>Wed, 28 Dec 2011 07:48:56 +0000</updated>
                    <resolved>Wed, 28 Dec 2011 07:48:56 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1567] GH-242: [UnderscoreNamingStrategy] fix docblock</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1567</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/242&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/242&lt;/a&gt;&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13312">DDC-1567</key>
            <summary>GH-242: [UnderscoreNamingStrategy] fix docblock</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>Tue, 27 Dec 2011 12:01:04 +0000</created>
                <updated>Wed, 28 Dec 2011 07:46:49 +0000</updated>
                    <resolved>Wed, 28 Dec 2011 07:46:49 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17116" author="beberlei" created="Wed, 28 Dec 2011 07:46:49 +0000"  >&lt;p&gt;Resolved&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-559] Allow table name and column names to be modified by a user-supplied inflector</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-559</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;With the annotation mapping driver, table names default to the same as the class name, and table columns default to the same name as the field (class property) name.&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;/** @Entity */
class MyEntity // db table will by default be &quot;MyEntity&quot;
{
    // ...

    /**
     * @Column(type=&quot;string&quot;)
     */
    protected $myProperty; // defaults to table column &quot;myProperty&quot; 
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It would be great if we could override this behavior by passing in a custom inflector.  So for example you could default all camelCase fields to be underscore_separated as column names in the database without needing to manually specify this in the annotations.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11295">DDC-559</key>
            <summary>Allow table name and column names to be modified by a user-supplied inflector</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="mjh_ca">Marc Hodgins</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Apr 2010 23:58:29 +0000</created>
                <updated>Sat, 24 Dec 2011 16:46:28 +0000</updated>
                    <resolved>Sat, 24 Dec 2011 16:46:28 +0000</resolved>
                            <version>2.0-BETA1</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="12791" author="romanb" created="Fri, 30 Apr 2010 08:18:53 +0000"  >&lt;p&gt;I think Hibernate, for example, has naming strategies for this and you can implement your own custom NamingStrategy that implements a specific (default) naming convention. Maybe we want a similar approach.&lt;/p&gt;</comment>
                    <comment id="13041" author="shurakai" created="Fri, 21 May 2010 19:19:37 +0000"  >&lt;p&gt;Whats a use case for this? One could use individual table / column names via hardcoding. (@table, i guess. see manual) Is this unwanted?&lt;/p&gt;</comment>
                    <comment id="13047" author="mjh_ca" created="Sat, 22 May 2010 18:11:37 +0000"  >&lt;p&gt;Sure there is a use case.  With a large schema, hardcoding via individual @table and @column annotations is error-prone.  A global &quot;default&quot; inflector (or naming strategy, as Roman suggests) would much cleaner.  Allowing customization of &quot;defaults&quot; doesn&apos;t seem unreasonable to me.&lt;/p&gt;</comment>
                    <comment id="17095" author="beberlei" created="Fri, 23 Dec 2011 17:15:03 +0000"  >&lt;p&gt;This issue is referenced in Github Pull-Request GH-241&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/241&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/241&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17098" author="beberlei" created="Sat, 24 Dec 2011 16:46:06 +0000"  >&lt;p&gt;Related Pull Request was closed: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/241&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/241&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17100" author="guilhermeblanco" created="Sat, 24 Dec 2011 16:46:28 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/abb258c951dd416fc5325ef548d15c7acd35703e&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/abb258c951dd416fc5325ef548d15c7acd35703e&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-1065] Exception message unclear when persisting a null object</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1065</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When persisting a null object in the entity manager, the exception message says &quot;NULL&quot;, which is not very helpful. The problem lies at the beginning of Doctrine/ORM/EntityManager::persist(), where the exception should be replaced by:&lt;/p&gt;

&lt;p&gt;if ( ! is_object($entity)) {&lt;br/&gt;
   throw new \InvalidArgumentException(sprintf(&apos;Cannot persist variable of type %s. persist() expects an Entity object.&apos;, gettype($entity)));&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>CentOS, symfony2 SE</environment>
            <key id="12462">DDC-1065</key>
            <summary>Exception message unclear when persisting a null object</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="fzaninotto">Francois Zaninotto</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Mar 2011 05:56:26 +0000</created>
                <updated>Thu, 22 Dec 2011 15:33:39 +0000</updated>
                    <resolved>Thu, 22 Dec 2011 15:32:43 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.3</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17087" author="beberlei" created="Thu, 22 Dec 2011 13:12:05 +0000"  >&lt;p&gt;This issue is referenced in Github Pull-Request GH-236&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/236&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/236&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17088" author="beberlei" created="Thu, 22 Dec 2011 15:32:17 +0000"  >&lt;p&gt;Related Pull Request was closed: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/236&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/236&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17089" author="guilhermeblanco" created="Thu, 22 Dec 2011 15:32:43 +0000"  >&lt;p&gt;Fixed by merge: &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/ec58285b3f05de1c1b7a127fedb12021dccf0762&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/ec58285b3f05de1c1b7a127fedb12021dccf0762&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>