Closed umpirsky closed 9 years ago
My use case is following, I want to register custom DQL function:
dql: string_functions: field: DoctrineExtensions\Query\Mysql\Field
Like documented in http://symfony.com/doc/2.3/cookbook/doctrine/custom_dql_functions.html.
But it is on default entity manager.
I wanted to fix it with:
$em->getConfiguration()->setCustomStringFunctions($defaultConfig->getCustomStringFunctions()); $em->getConfiguration()->setCustomNumericFunctions($defaultConfig->getCustomNumericFunctions()); $em->getConfiguration()->setCustomDatetimeFunctions($defaultConfig->getCustomDatetimeFunctions());
in Kayue\WordpressBundle\Wordpress\ManagerRegistry, but there is no getCustomStringFunctions() in Doctrine\ORM\Configuration.
Kayue\WordpressBundle\Wordpress\ManagerRegistry
getCustomStringFunctions()
Doctrine\ORM\Configuration
Do you have any better idea how we can fix this @kayue?
Thanks @umpirsky :+1:
My use case is following, I want to register custom DQL function:
Like documented in http://symfony.com/doc/2.3/cookbook/doctrine/custom_dql_functions.html.
But it is on default entity manager.
I wanted to fix it with:
in
Kayue\WordpressBundle\Wordpress\ManagerRegistry
, but there is nogetCustomStringFunctions()
inDoctrine\ORM\Configuration
.Do you have any better idea how we can fix this @kayue?