{"action":"opened","issue":{"url":"https://api.github.com/repos/doctrine/DoctrineORMModule/issues/383","labels_url":"https://api.github.com/repos/doctrine/DoctrineORMModule/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/DoctrineORMModule/issues/383/comments","events_url":"https://api.github.com/repos/doctrine/DoctrineORMModule/issues/383/events","html_url":"https://github.com/doctrine/DoctrineORMModule/issues/383","id":58196093,"number":383,"title":"Lazy connection with command line","user":{"login":"coolmic","id":946415,"avatar_url":"https://avatars.githubusercontent.com/u/946415?v=3","gravatar_id":"","url":"https://api.github.com/users/coolmic","html_url":"https://github.com/coolmic","followers_url":"https://api.github.com/users/coolmic/followers","following_url":"https://api.github.com/users/coolmic/following{/other_user}","gists_url":"https://api.github.com/users/coolmic/gists{/gist_id}","starred_url":"https://api.github.com/users/coolmic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coolmic/subscriptions","organizations_url":"https://api.github.com/users/coolmic/orgs","repos_url":"https://api.github.com/users/coolmic/repos","events_url":"https://api.github.com/users/coolmic/events{/privacy}","received_events_url":"https://api.github.com/users/coolmic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-19T11:25:14Z","updated_at":"2015-02-19T11:25:14Z","closed_at":null,"body":"When I use command line, but didn't configure connection credentials, I get an error\r\n\r\nWith only :\r\n```\r\nphp public/index.php\r\n```\r\n\r\nI get : \r\n```\r\nWarning: array_map(): An error occurred while invoking the map callback in /private/var/www/website/vendor/doctrine/doctrine-orm-module/src/DoctrineORMModule/Module.php on line 138\r\n```\r\n\r\nThe main reason is because \r\n```\r\nDoctrine\\DBAL\\Exception\\ConnectionException: An exception occured in driver: SQLSTATE[HY000] [1045] Access denied for user 'username'@'localhost' (using password: YES)\r\n``` \r\n\r\nIt's easy to fix, but I planned to use zf2 command line to configure doctrine connection on testing/production server. \r\n\r\nI would understand if I got this error when trying to use orm or migrations tools. But DoctrineOrmModule will try to connect to database even when I don't use database manipulation commands.\r\n\r\n\r\nWould be great if database connection occur only when using DoctrineOrmModule command lines."}}