[Documentation] Document DQL built-in functions #5742

Closed
opened 2026-01-22 15:16:19 +01:00 by admin · 1 comment
Owner

Originally created by @OJezu on GitHub (Oct 19, 2017).

As far as I know, there is no list of functions that are built in into DQL in documentation. I think at least there should be link to repo directory with the classes.

I was looking a while for documentation whether ANSI MySQL POSITION is available. I've already implemented it as custom function, and only then I looked at code to find it already is there under MySQL LOCATE name. Documentation with list of functions, their parameters and return values would be nice, but as I said, the link to repo code would be a start:

https://github.com/doctrine/doctrine2/tree/master/lib/Doctrine/ORM/Query/AST/Functions

Originally created by @OJezu on GitHub (Oct 19, 2017). As far as I know, there is no list of functions that are built in into DQL in documentation. I think at least there should be link to repo directory with the classes. I was looking a while for documentation whether ANSI MySQL `POSITION` is available. I've already implemented it as custom function, and only then I looked at code to find it already is there under MySQL `LOCATE` name. Documentation with list of functions, their parameters and return values would be nice, but as I said, the link to repo code would be a start: https://github.com/doctrine/doctrine2/tree/master/lib/Doctrine/ORM/Query/AST/Functions
admin added the Documentation label 2026-01-22 15:16:19 +01:00
admin closed this issue 2026-01-22 15:16:20 +01:00
Author
Owner

@Majkl578 commented on GitHub (Dec 9, 2017):

There is already a list of built-in functions under the EBNF section of the DQL chapter, but without further description.
Consider sending a PR if you want to speed things up.

@Majkl578 commented on GitHub (Dec 9, 2017): There is already a list of built-in functions under [the EBNF section of the DQL chapter](https://github.com/doctrine/doctrine2/blob/v2.5.13/docs/en/reference/dql-doctrine-query-language.rst#functions-1), but without further description. Consider sending a PR if you want to speed things up.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5742