From bdca46d286ea53d19f5290b7583bf979ff3af0ca Mon Sep 17 00:00:00 2001 From: Ruben Date: Fri, 31 Mar 2017 12:33:25 +0200 Subject: [PATCH] Stats --- src/Application.php | 3 +++ 1 file changed, 3 insertions(+) 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',