lib/Doctrine/ORM/Configuration.php
public function setCustomStringFunctions(array $functions) : void
    {
        foreach ($functions as $name => $className) {
            $this->addCustomStringFunction($name, $className);
        }
    }
public function setCustomStringFunctions(array $functions) : void
    {
        foreach ($functions as $name => $className) {
            $this->addCustomStringFunction($name, $className);
        }
    }
public function setCustomStringFunctions ( array $ functions ) : void { foreach ( $ functions as $ name => $ className ) { $ this -> addCustomStringFunction ( $ name , $ className ) ; } }
Sets a map of custom DQL string functions.

Keys must be function names and values the FQCN of the implementing class.
The function names will be case-insensitive in DQL.

Any previously added string functions are discarded.

@param string[]|callable[] $functions The map of custom DQL string functions.
Sets a map of custom DQL string functions .