<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 22:57:24 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-1900/DDC-1900.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-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>
</channel>
</rss>