This commit is contained in:
Ruben 2017-03-31 12:33:25 +02:00
parent b3fc783098
commit bdca46d286

View file

@ -57,6 +57,9 @@ class Application {
// $em_config->setQueryCacheImpl(new \Doctrine\Common\Cache\ApcuCache()); // $em_config->setQueryCacheImpl(new \Doctrine\Common\Cache\ApcuCache());
// $em_config->setResultCacheImpl(new \Doctrine\Common\Cache\ApcuCache()); // $em_config->setResultCacheImpl(new \Doctrine\Common\Cache\ApcuCache());
// $em_config->setMetadataCacheImpl(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( $em_config->setCustomNumericFunctions(array(
'ACOS' => 'DoctrineExtensions\Query\Mysql\Acos', 'ACOS' => 'DoctrineExtensions\Query\Mysql\Acos',
'ASIN' => 'DoctrineExtensions\Query\Mysql\Asin', 'ASIN' => 'DoctrineExtensions\Query\Mysql\Asin',