Skip to content

Commit 886ccd5

Browse files
author
FlorianLB
committed
switch custom DQL code example from multi-manager to single
1 parent 7c038bf commit 886ccd5

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

cookbook/doctrine/custom_dql_functions.rst

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@ In Symfony, you can register your custom DQL functions as follows:
1717
doctrine:
1818
orm:
1919
# ...
20-
entity_managers:
21-
default:
22-
# ...
23-
dql:
24-
string_functions:
25-
test_string: Acme\HelloBundle\DQL\StringFunction
26-
second_string: Acme\HelloBundle\DQL\SecondStringFunction
27-
numeric_functions:
28-
test_numeric: Acme\HelloBundle\DQL\NumericFunction
29-
datetime_functions:
30-
test_datetime: Acme\HelloBundle\DQL\DatetimeFunction
20+
dql:
21+
string_functions:
22+
test_string: Acme\HelloBundle\DQL\StringFunction
23+
second_string: Acme\HelloBundle\DQL\SecondStringFunction
24+
numeric_functions:
25+
test_numeric: Acme\HelloBundle\DQL\NumericFunction
26+
datetime_functions:
27+
test_datetime: Acme\HelloBundle\DQL\DatetimeFunction
3128
3229
.. code-block:: xml
3330

0 commit comments

Comments
 (0)