[DDC-1900] Impossibility to override built-in SQL functions Created: 30/Jun/12 Updated: 05/Jul/12 Resolved: 05/Jul/12
|Project:||Doctrine 2 - ORM|
|Affects Version/s:||Git Master|
|Reporter:||Alex Oroshchuk||Assignee:||Benjamin Eberlei|
Doctrine doesn't allow to to create own SQL function for DQL if that function is already defined as "built-in". An example could be custom DATE_ADD implementation.
|Comment by Benjamin Eberlei [ 04/Jul/12 ]|
Just name the method differently.
|Comment by Alex Oroshchuk [ 05/Jul/12 ]|
To rename the method one has to KNOW that he has to rename it, i.e. to know about this issue.
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?
I re-open the issue in order to attract more attention, but you are free to decide how to treat it. Hope you'll find the best solution. A short line in documentation could notify about current limitations and save hours for people
|Comment by Benjamin Eberlei [ 05/Jul/12 ]|
Printing statements in bold isnt helpful. This is open-source.
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.