RamyHakam / multi_tenancy_bundle

Symfony 5 /6 bundle to support multi-tenants
MIT License
70 stars 24 forks source link

Unable to use DQL string_functions #28

Closed NikoGrano closed 7 months ago

NikoGrano commented 7 months ago

Normally you can define string_functions in doctrine like this:

doctrine:
    dbal:
        ...

    orm:
        ...
        mappings:
            App:
                ...

        dql:
            string_functions:
                DATE: DoctrineExtensions\Query\Mysql\Date

However this bundle does not port these defined string_functions to the tenant entity manager, nor is there any possible way to configure these to current bundle.

Would recommend make this configurable to the bundle configuration OR just copy the configuration from the doctrine bundle.

I did following later with linked patch.