Doctrine\ORM\Configuration::setCustomDatetimeFunctions
Sets a map of custom DQL date/time 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 date/time functions are discarded.
Signature
public function setCustomDatetimeFunctions(array
$functions )
Parameters
$functions
— array- The map of custom DQL date/time functions.