From c280f1bf714513062ca23dbb50b25f82b35ead6d Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 13 Jun 2024 14:45:42 +0200 Subject: [PATCH] Improve the usage documentation in the readme --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 965e5737..e9e87bfc 100644 --- a/README.md +++ b/README.md @@ -48,18 +48,15 @@ composer run lint Usage ----- +### Symfony + If you are using DoctrineExtensions with Symfony read [How to Register custom DQL Functions](https://symfony.com/doc/current/doctrine/custom_dql_functions.html). You can find example Symfony configuration for using DoctrineExtensions custom DQL functions in [config](config). -If you are using DoctrineExtensions standalone, you might want to fire up the autoloader: - -```php -register(); -``` +If you are using DoctrineExtensions standalone, you need to register the custom function in the ORM configuration. For more information check out the documentation of [Doctrine DQL User Defined Functions](https://www.doctrine-project.org/projects/doctrine-orm/en/latest/cookbook/dql-user-defined-functions.html). Notes