Skip to content

Commit b0fd751

Browse files
committed
Fixed config
1 parent a2a97e9 commit b0fd751

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

doctrine/custom_dql_functions.rst

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,14 @@ In Symfony, you can register your custom DQL functions as follows:
131131
use App\DQL\DatetimeFunction;
132132
133133
$container->loadFromExtension('doctrine', [
134-
'doctrine' => [
135-
'orm' => [
136-
// ...
137-
'entity_managers' => [
138-
'example_manager' => [
139-
// place your functions here
140-
'dql' => [
141-
'datetime_functions' => [
142-
'test_datetime' => DatetimeFunction::class,
143-
],
134+
'orm' => [
135+
// ...
136+
'entity_managers' => [
137+
'example_manager' => [
138+
// place your functions here
139+
'dql' => [
140+
'datetime_functions' => [
141+
'test_datetime' => DatetimeFunction::class,
144142
],
145143
],
146144
],

0 commit comments

Comments
 (0)