DQL custom functions on doctrine reference page

Seems that there is two possibilities to configure custom DQL functions

It should be clearified in doctrine reference page because It may confuse some people if they just read the cookbook: http://symfony.com/doc/current/cookbook/doctrine/custom_dql_functions.html