Add DoctrineExtensions for more Mysql functions

pull/8/head
Thomas Metois 2016-12-05 17:35:09 +01:00
parent a7834972a2
commit d56831777f
2 changed files with 9 additions and 3 deletions

View File

@ -15,7 +15,8 @@
"robmorgan/phinx": "0.5.*", "robmorgan/phinx": "0.5.*",
"monarc/core": "dev-master", "monarc/core": "dev-master",
"monarc/frontoffice": "dev-master", "monarc/frontoffice": "dev-master",
"phing/phing": "~2.0" "phing/phing": "~2.0",
"beberlei/DoctrineExtensions": "^1.0"
}, },
"config": { "config": {
"bin-dir": "bin/" "bin-dir": "bin/"

View File

@ -74,6 +74,7 @@ return array(
'configuration' => 'orm_cli', 'configuration' => 'orm_cli',
), ),
), ),
// https://github.com/beberlei/DoctrineExtensions/blob/master/config/mysql.yml
'configuration' => array( 'configuration' => array(
'orm_default' => array( 'orm_default' => array(
'metadata_cache' => 'mycache', 'metadata_cache' => 'mycache',
@ -85,7 +86,9 @@ return array(
'proxy_namespace' => 'DoctrineORMModule\Proxy', 'proxy_namespace' => 'DoctrineORMModule\Proxy',
'filters' => array(), 'filters' => array(),
'datetime_functions' => array(), 'datetime_functions' => array(),
'string_functions' => array(), 'string_functions' => array(
'greatest' => 'DoctrineExtensions\Query\Mysql\Greatest',
),
'numeric_functions' => array(), 'numeric_functions' => array(),
'second_level_cache' => array(), 'second_level_cache' => array(),
), ),
@ -99,7 +102,9 @@ return array(
'proxy_namespace' => 'DoctrineORMModule\Proxy', 'proxy_namespace' => 'DoctrineORMModule\Proxy',
'filters' => array(), 'filters' => array(),
'datetime_functions' => array(), 'datetime_functions' => array(),
'string_functions' => array(), 'string_functions' => array(
'greatest' => 'DoctrineExtensions\Query\Mysql\Greatest',
),
'numeric_functions' => array(), 'numeric_functions' => array(),
'second_level_cache' => array(), 'second_level_cache' => array(),
), ),