Replace addCustomXxxFunction with single addCustomFunction #7400

Open
opened 2026-01-22 15:51:17 +01:00 by admin · 0 comments
Owner

Originally created by @janedbal on GitHub (Aug 2, 2024).

I don't understand what is the addCustom*Function actually distinguishing. All those methods in Doctrine\ORM\Query\Parser do the same thing:

  • CustomFunctionsReturningStrings
  • CustomFunctionsReturningNumerics
  • CustomFunctionsReturningDatetime

Feels like it actually does nothing and thus there could be only single addCustomFunction method. Am I correct or did I miss something?


Originally asked in https://github.com/doctrine/orm/issues/11537#issuecomment-2228600289

Originally created by @janedbal on GitHub (Aug 2, 2024). I don't understand what is the `addCustom*Function` actually distinguishing. All those methods in `Doctrine\ORM\Query\Parser` do the same thing: - `CustomFunctionsReturningStrings` - `CustomFunctionsReturningNumerics` - `CustomFunctionsReturningDatetime` Feels like it actually does nothing and thus there could be only single `addCustomFunction` method. Am I correct or did I miss something? ----- Originally asked in https://github.com/doctrine/orm/issues/11537#issuecomment-2228600289
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7400