symfony/symfony-docs — pull request #3939 by healdropper (2014-06-12 10:26:39+00:00)
Title: Correct How to register custom DQL Functions

For all symfony versions, official documentation suggests that custom dql functions should be declared in config.yml under doctrine.orm, but that's not correct.

http://symfony.com/doc/2.4/cookbook/doctrine/custom_dql_functions.html

Actually, It works If your custom functions are declared inside every entity manager that uses them, i.e, doctrine.orm.entity_managers.default