<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sun May 19 07:57:55 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/DDC-1998/DDC-1998.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DDC-1998] Problem when deleting with EntityManager-&gt;remove($entity)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-1998</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;The problem is when using EntityMamager-&amp;gt;remove($entity). The Sql query generated doesn&apos;t convert the values of the ids according to the field type that is used in doc block annotation. After investigating I found that in Doctrine\DBAL\Connection the function delete doesn&apos;t support to receive as param the types of the ids to be given to the executeUpdate function which is called in it and supports them. (The types need to be provided from the persisters from which the delete is called). &lt;/p&gt;

&lt;p&gt;I hope it make sense to you. I got that problem because I am using custom time stamp column type as id. And it converts the value of the field to time stamp string, which if not converted to the proper sql value is not recognised and the delete doesn&apos;t go trough.&lt;/p&gt;

&lt;p&gt;As far as I can see it is something that was missed and hope it will be fixed soon.&lt;/p&gt;

&lt;p&gt;If you have any questions please ask.&lt;br/&gt;
Also on request I can provide example code and the fix I have done for myself. &lt;/p&gt;</description>
                <environment></environment>
            <key id="13991">DDC-1998</key>
            <summary>Problem when deleting with EntityManager-&gt;remove($entity)</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="vigor_bg">victor Velkov</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Aug 2012 11:28:38 +0000</created>
                <updated>Wed, 1 May 2013 18:31:03 +0000</updated>
                    <resolved>Wed, 1 May 2013 18:31:03 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>5</watches>
                        <comments>
                    <comment id="18582" author="fabio.bat.silva" created="Wed, 29 Aug 2012 22:00:36 +0000"  >&lt;p&gt;Hi Victor&lt;/p&gt;

&lt;p&gt;Could you attach/paste your custom type and entity please ?&lt;/p&gt;</comment>
                    <comment id="18584" author="vigor_bg" created="Thu, 30 Aug 2012 05:47:56 +0000"  >&lt;p&gt;Ok I have attached them. The EwtTimestamp is the custom type. &lt;/p&gt;</comment>
                    <comment id="18663" author="ocramius" created="Mon, 17 Sep 2012 11:50:53 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=vigor_bg&quot; class=&quot;user-hover&quot; rel=&quot;vigor_bg&quot;&gt;victor Velkov&lt;/a&gt; do you have a failing test case for this one?&lt;/p&gt;</comment>
                    <comment id="18664" author="vigor_bg" created="Mon, 17 Sep 2012 12:14:48 +0000"  >&lt;p&gt;Nope sorry haven&apos;t done any test cases for this one&lt;/p&gt;</comment>
                    <comment id="18703" author="fabio.bat.silva" created="Sun, 23 Sep 2012 22:27:36 +0000"  >&lt;p&gt;Hi Victor,&lt;/p&gt;

&lt;p&gt;I can&apos;t reproduce, could you change the added test case and try to make it fails ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="18732" author="vigor_bg" created="Wed, 26 Sep 2012 05:31:22 +0000"  >&lt;p&gt;Sure will do it as soon as I can. Sorry I didn&apos;t answer sooner just was in a holiday &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="18753" author="fabio.bat.silva" created="Tue, 2 Oct 2012 12:44:03 +0000"  >&lt;p&gt;Thanks Victor&lt;/p&gt;

&lt;p&gt;Please let me know when you change the test&lt;/p&gt;</comment>
                    <comment id="18757" author="vigor_bg" created="Tue, 2 Oct 2012 14:03:24 +0000"  >&lt;p&gt;Sorry for the delay i have attached the test case (DDC1998Test1.php). &lt;/p&gt;</comment>
                    <comment id="18816" author="fabio.bat.silva" created="Wed, 10 Oct 2012 15:31:00 +0000"  >&lt;p&gt;Hi Victor,&lt;/p&gt;

&lt;p&gt;Sorry for the delay to answer&lt;/p&gt;

&lt;p&gt;I think that we can&apos;t fix it,&lt;br/&gt;
Your type requires sql conversion to work, and doctrine does not support @Id fields with sql conversion.&lt;/p&gt;</comment>
                    <comment id="18820" author="vigor_bg" created="Thu, 11 Oct 2012 05:45:22 +0000"  >&lt;p&gt;Really as far as i can see in the code you do convert them when you are executing an update. And the fix that i did for my self is to add 3rd parameter to the function delete in Doctrine\DBAL\Connection and then every where where it is called in the code which is in 2 places Doctrine\ORM\Persisters\BasicEntityPersister and Doctrine\ORM\JoinedSubclassPersister to give that parameter with the types. And as far as i can see you do that for the updates. After that in Connection delete you call the executeUpdate which supports the type and you just have to pass it along. And that is it. &lt;/p&gt;</comment>
                    <comment id="19364" author="ocramius" created="Wed, 23 Jan 2013 21:01:02 +0000"  >&lt;p&gt;Reducing priority. It is an edge case, and we already don&apos;t officially support custom object types as identifiers.&lt;/p&gt;</comment>
                    <comment id="20171" author="beberlei" created="Wed, 1 May 2013 17:52:47 +0000"  >&lt;p&gt;We should be able to support this I think, i don&apos;t see a reason it shouldnt work&lt;/p&gt;</comment>
                    <comment id="20174" author="beberlei" created="Wed, 1 May 2013 18:31:03 +0000"  >&lt;p&gt;Will be fixed in 2.4&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11325" name="DDC1998Test.php" size="3029" author="fabio.bat.silva" created="Sun, 23 Sep 2012 22:27:36 +0000" />
                    <attachment id="11336" name="DDC1998Test1.php" size="3191" author="vigor_bg" created="Tue, 2 Oct 2012 14:04:37 +0000" />
                    <attachment id="11315" name="EwtTimestamp.php" size="1991" author="vigor_bg" created="Thu, 30 Aug 2012 05:46:54 +0000" />
                    <attachment id="11316" name="ProductTemplate.php" size="844" author="vigor_bg" created="Thu, 30 Aug 2012 05:46:54 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>