<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 25 09:34:50 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+DDC+AND+fixVersion+%3D+%222.2.4%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.2.4%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="6" total="6"/>
                <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-2068] [GH-474] Fixed bug with comment option not being added to column.</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2068</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 okovalov:&lt;/p&gt;

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

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

&lt;p&gt;Title explains everything... =)&lt;/p&gt;</description>
                <environment></environment>
            <key id="14118">DDC-2068</key>
            <summary>[GH-474] Fixed bug with comment option not being added to column.</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, 11 Oct 2012 15:58:51 +0000</created>
                <updated>Fri, 12 Oct 2012 18:37:20 +0000</updated>
                    <resolved>Fri, 12 Oct 2012 18:37:20 +0000</resolved>
                                            <fixVersion>2.2.4</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18827" author="beberlei" created="Fri, 12 Oct 2012 05:23:10 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-474&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/474&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/474&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2059] Property perceived as dumplicate in composite foreign key</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2059</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I have the following schema:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
CREATE TABLE `user` (
  `id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`id`)
);

CREATE TABLE `project` (
  `id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
);

CREATE TABLE `project_conversation` (
  `project_id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned NOT NULL,
  `user_id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned NOT NULL,
  PRIMARY KEY (`project_id`,`user_id`)
)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I have ommitted the foreign key definitions for better readability. When I execute doctrine:mapping:convert (in Symfony2, but it seems it&apos;s a Doctrine2 issue), I get the following error:&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\Mapping\MappingException]                                               
Property &lt;span class=&quot;code-quote&quot;&gt;&quot;user&quot;&lt;/span&gt; in &lt;span class=&quot;code-quote&quot;&gt;&quot;Project&quot;&lt;/span&gt; was already declared, but it must be declared only once
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I have tracked down the issue to be caused by the existence of `user_id` in the project table. So basically, because `project_conversation` references `project` which in turn references `user`, `project_conversation` reference to `user` is perceived as duplicate.&lt;/p&gt;

&lt;p&gt;I don&apos;t think that this should be the expected behavior though. user_id in `project` references the creator of the project while user_id in `project_conversation` references the creator of the conversation and thus I think the schema is valid.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14101">DDC-2059</key>
            <summary>Property perceived as dumplicate in composite foreign key</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="dimboz">Dimitris Bozelos</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Oct 2012 16:25:15 +0000</created>
                <updated>Fri, 5 Oct 2012 18:08:12 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 18:08:12 +0000</resolved>
                            <version>2.1.3</version>
                                <fixVersion>2.2.4</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18779" author="beberlei" created="Fri, 5 Oct 2012 18:08:12 +0000"  >&lt;p&gt;Will be fixed in 2.2.4 and 2.3.1&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2012] Inserting a new entity with a custom mapping type does not call convertToDatabaseValueSQL() when using InheritanceType(&quot;JOINED&quot;)</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2012</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using class type inheritance - @InheritanceType(&quot;JOINED&quot;) and inserting new entity with a custom mapping type, custom type method convertToDatabaseValueSQL() is never called.&lt;/p&gt;

&lt;p&gt;Here is sample class 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;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;item&quot;&lt;/span&gt;)
 * @Entity
 * @InheritanceType(&lt;span class=&quot;code-quote&quot;&gt;&quot;JOINED&quot;&lt;/span&gt;)
 * @DiscriminatorColumn(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;type_id&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;smallint&quot;&lt;/span&gt;)
 * @DiscriminatorMap({1 = &lt;span class=&quot;code-quote&quot;&gt;&quot;ItemPerson&quot;&lt;/span&gt;})
 */
class Item {

	/**
	 * @Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;tsv&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;tsvector&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; $tsv;
}

/**
 * @Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;item_person&quot;&lt;/span&gt;)
 * @Entity
 */
class ItemPerson &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Item
{
}

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;I am using the same custom TsvectorType with simple entities and even Mapped Superclasses and it works perfectly, however on InheritanceType(&quot;JOINED&quot;) method convertToDatabaseValueSQL() is never called :/&lt;br/&gt;
Hope someone knows how to fix this. &lt;br/&gt;
Thank you.&lt;/p&gt;
</description>
                <environment>PHP</environment>
            <key id="14012">DDC-2012</key>
            <summary>Inserting a new entity with a custom mapping type does not call convertToDatabaseValueSQL() when using InheritanceType(&quot;JOINED&quot;)</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="darklow">Kaspars Spro&#291;is</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Sep 2012 10:02:03 +0000</created>
                <updated>Wed, 3 Oct 2012 11:57:09 +0000</updated>
                    <resolved>Wed, 3 Oct 2012 10:52:45 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.2.4</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                <component>Mapping Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18704" author="fabio.bat.silva" created="Mon, 24 Sep 2012 00:00:03 +0000"  >&lt;p&gt;Hi Kaspars,&lt;/p&gt;


&lt;p&gt;I can&apos;t reproduce, &lt;br/&gt;
Could you change the added testcase and try to make it fails ?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="18735" author="darklow" created="Wed, 26 Sep 2012 16:26:25 +0000"  >&lt;p&gt;@Fabio thanks for looking into my problem&lt;br/&gt;
I attached test where you can detect the problem.&lt;/p&gt;

&lt;p&gt;It was quite strange, all i did was changed column that uses custom type to array and some minimal convertToDatabaseValue and convertToDatabaseValueSQL logic and convertToDatabaseValueSQL was never called. &lt;/p&gt;

&lt;p&gt;One more thing i noticed, this bug only appears on persist and not on merge. &lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="18741" author="fabio.bat.silva" created="Sat, 29 Sep 2012 17:57:34 +0000"  >&lt;p&gt;Thanks Kaspars &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;But sorry, I dont get your use case.&lt;/p&gt;

&lt;p&gt;Notice that convertToDatabaseValueSQL is called just when using queries to find a object by a especific columns which is your mapping type.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://docs.doctrine-project.org/en/2.1/cookbook/advanced-field-value-conversion-using-custom-mapping-types.html#the-mapping-type&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/en/2.1/cookbook/advanced-field-value-conversion-using-custom-mapping-types.html#the-mapping-type&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18743" author="darklow" created="Sat, 29 Sep 2012 22:15:09 +0000"  >&lt;p&gt;I am using PostgreSQL tsvector data type for full text search.&lt;/p&gt;

&lt;p&gt;Here is my tsvector custom data type class:&lt;br/&gt;
&lt;a href=&quot;https://gist.github.com/3129096&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/3129096&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The only way to update this field in postgresql is to use postgresql function to_tsvector(&apos;some text&apos;).&lt;br/&gt;
And everything works fine, if i persist simple entity, this method transforms insert query as needed:&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 convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
{
	&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; sprintf(&apos;to_tsvector(%s)&apos;, $sqlExpr);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But when i use inheritance, then by some reason convertToDatabaseValueSQL method is not called and tsv field is updated with simple text as returned by convertToDatabaseValue() method.&lt;br/&gt;
I modified the Ticket Test so that you can see exact moment of when it is not called, which is exactly my problem.&lt;/p&gt;

&lt;p&gt;Here is the result after persisting (for persist it failed)&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;
$person = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; ItemPerson();
$person-&amp;gt;setName(&apos;some words &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; test&apos;);
$em-&amp;gt;persist($person);
$em-&amp;gt;flush();

DB Result:
Name                | Tsv
--------------------|------------------------------------
some words &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; test | &apos;&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;&apos; &apos;some&apos; &apos;test&apos; &apos;words&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here is the result after second time update (now by tsv format you can see it worked):&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;
$person-&amp;gt;setName(&apos;some more words &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; test&apos;);
$em-&amp;gt;flush();

DB Result:
Name                | Tsv
--------------------|------------------------------------
some words &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; test | &apos;test&apos;:5 &apos;word&apos;:3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="18744" author="fabio.bat.silva" created="Sun, 30 Sep 2012 18:32:40 +0000"  >&lt;p&gt;Thanks Kaspars&lt;/p&gt;

&lt;p&gt;Now i saw the problem&lt;/p&gt;

&lt;p&gt;Writing a patch ...&lt;/p&gt;</comment>
                    <comment id="18766" author="darklow" created="Wed, 3 Oct 2012 11:07:02 +0000"  >&lt;p&gt;Just tested fixed version and everything works perfectly now.&lt;br/&gt;
Thank you!&lt;/p&gt;</comment>
                    <comment id="18767" author="fabio.bat.silva" created="Wed, 3 Oct 2012 11:57:09 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/91caff1d8965c20b72d5fdd04ffadf3ab063c1ba&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/91caff1d8965c20b72d5fdd04ffadf3ab063c1ba&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11327" name="DDC2012Test.php" size="4473" author="darklow" created="Wed, 26 Sep 2012 16:24:17 +0000" />
                    <attachment id="11326" name="DDC2012Test.php" size="4372" author="fabio.bat.silva" created="Mon, 24 Sep 2012 00:00:03 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DDC-2050] [GH-459] Fix DDC-2012</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2050</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/459&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/459&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-2012&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2012&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14083">DDC-2050</key>
            <summary>[GH-459] Fix DDC-2012</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, 30 Sep 2012 18:52:51 +0000</created>
                <updated>Wed, 3 Oct 2012 10:53:20 +0000</updated>
                    <resolved>Wed, 3 Oct 2012 10:53:20 +0000</resolved>
                                            <fixVersion>2.2.4</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18765" author="beberlei" created="Wed, 3 Oct 2012 10:46:11 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-459&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/459&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/459&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>
</channel>
</rss>