diff --git a/src/Application.php b/src/Application.php index 44a81c5..3911f35 100644 --- a/src/Application.php +++ b/src/Application.php @@ -57,6 +57,9 @@ class Application { // $em_config->setQueryCacheImpl(new \Doctrine\Common\Cache\ApcuCache()); // $em_config->setResultCacheImpl(new \Doctrine\Common\Cache\ApcuCache()); // $em_config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ApcuCache()); + $em_config->setCustomDatetimeFunctions([ + 'DATE' => 'DoctrineExtensions\Query\Mysql\Date', + ]); $em_config->setCustomNumericFunctions(array( 'ACOS' => 'DoctrineExtensions\Query\Mysql\Acos', 'ASIN' => 'DoctrineExtensions\Query\Mysql\Asin',