DDC-3393: Cannot extend existing internal functions #4191

Open
opened 2026-01-22 14:37:00 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 17, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user rms230:

On the MySQL platform, i want to use DATE_SUB with more than just DAY and MONTH, so I write a function and give it the identifier of date_sub however this is not allowed?

Why are we not able to extend the functions, surely if we're writing the function we know the platform that we're extending it on and the other platform specific functions will fail at parsing due to an unsupported type.

I don't want to have to prefix my code with MY_DATE_SUB only for an additional type to be supported at a later date, that would just lead to inconsistencies in my code.

Originally created by @doctrinebot on GitHub (Nov 17, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user rms230: On the MySQL platform, i want to use DATE_SUB with more than just DAY and MONTH, so I write a function and give it the identifier of date_sub however this is not allowed? Why are we not able to extend the functions, surely if we're writing the function we know the platform that we're extending it on and the other platform specific functions will fail at parsing due to an unsupported type. I don't want to have to prefix my code with MY_DATE_SUB only for an additional type to be supported at a later date, that would just lead to inconsistencies in my code.
admin added the Bug label 2026-01-22 14:37:00 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4191