Skip to content

Instantly share code, notes, and snippets.

@kstefan
Created August 15, 2015 17:37
Show Gist options
  • Save kstefan/b77ce8fe28cd3893d52c to your computer and use it in GitHub Desktop.
Save kstefan/b77ce8fe28cd3893d52c to your computer and use it in GitHub Desktop.
ZF2 Doctrine naming strategy
<?php
return [
'doctrine' => [
/* ... */
'configuration' => [
'orm_default' => [
'metadata_cache' => 'array',
'query_cache' => 'array',
'result_cache' => 'array',
'generate_proxies' => true,
'proxy_dir' => 'data/doctrine/proxy',
'naming_strategy' => 'Doctrine\ORM\Mapping\UnderscoreNamingStrategy',
],
],
/* ... */
],
'service_manager' => [
'invokables' => [
'Doctrine\ORM\Mapping\UnderscoreNamingStrategy' => 'Doctrine\ORM\Mapping\UnderscoreNamingStrategy',
],
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment