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