|
|
|
@ -22,6 +22,13 @@ class EntityManagerFactory |
|
|
|
{ |
|
|
|
self::checkRequiredParams($params, ['paths', 'database', 'proxy_dir']); |
|
|
|
|
|
|
|
// workaround for doctrine console commands requiring active database connection -
|
|
|
|
// specifying server version explicitly doesn't trigger this connection, which is not
|
|
|
|
// needed for proxy generation
|
|
|
|
if (defined('STDIN') && @$_SERVER['argv'][1] == 'orm:generate-proxies') { |
|
|
|
$params['database']['serverVersion'] = 14; |
|
|
|
} |
|
|
|
|
|
|
|
$paths = $params['paths']; |
|
|
|
$connection = $params['database']; |
|
|
|
|
|
|
|
|