Skip to content

Commit ebda029

Browse files
committed
Tweaks
1 parent e7bb900 commit ebda029

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doctrine/custom_dql_functions.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ In Symfony, you can register your custom DQL functions as follows:
148148
149149
.. caution::
150150

151-
It is not possible to inject Symfony services or parameters into a custom DQL function.
151+
DQL functions are instantiated by Doctrine outside of the Symfony
152+
:doc:`service container </service_container>` so you can't inject services
153+
or parameters into a custom DQL function.
152154

153155
.. _`DQL User Defined Functions`: https://www.doctrine-project.org/projects/doctrine-orm/en/current/cookbook/dql-user-defined-functions.html

0 commit comments

Comments
 (0)