{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/16587","labels_url":"https://api.github.com/repos/symfony/symfony/issues/16587/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/16587/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/16587/events","html_url":"https://github.com/symfony/symfony/issues/16587","id":117558830,"number":16587,"title":"Symfony console requires database access","user":{"login":"luispabon","id":6388823,"avatar_url":"https://avatars.githubusercontent.com/u/6388823?v=3","gravatar_id":"","url":"https://api.github.com/users/luispabon","html_url":"https://github.com/luispabon","followers_url":"https://api.github.com/users/luispabon/followers","following_url":"https://api.github.com/users/luispabon/following{/other_user}","gists_url":"https://api.github.com/users/luispabon/gists{/gist_id}","starred_url":"https://api.github.com/users/luispabon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luispabon/subscriptions","organizations_url":"https://api.github.com/users/luispabon/orgs","repos_url":"https://api.github.com/users/luispabon/repos","events_url":"https://api.github.com/users/luispabon/events{/privacy}","received_events_url":"https://api.github.com/users/luispabon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-18T10:33:02Z","updated_at":"2015-11-23T08:44:43Z","closed_at":null,"body":"cache:clear, debug:router etc for some bizarre reason fail if the configured database is not accessible; for instance when on a host/vm situation and running these from the host instead of the vm. Looks to me like a DB connection is stablished for no reason whatsoever.\r\n\r\nThis is also making our lives too difficult when setting up CI - we've had to hack around a little so that symfony reverts to sqlite when run on our jenkins boxes.\r\n\r\nYou absolutely shouldn't need to stablish a db connection unless you're actually going to use it."},"comment":{"url":"https://api.github.com/repos/symfony/symfony/issues/comments/158877899","html_url":"https://github.com/symfony/symfony/issues/16587#issuecomment-158877899","issue_url":"https://api.github.com/repos/symfony/symfony/issues/16587","id":158877899,"user":{"login":"rvanlaak","id":2707563,"avatar_url":"https://avatars.githubusercontent.com/u/2707563?v=3","gravatar_id":"","url":"https://api.github.com/users/rvanlaak","html_url":"https://github.com/rvanlaak","followers_url":"https://api.github.com/users/rvanlaak/followers","following_url":"https://api.github.com/users/rvanlaak/following{/other_user}","gists_url":"https://api.github.com/users/rvanlaak/gists{/gist_id}","starred_url":"https://api.github.com/users/rvanlaak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvanlaak/subscriptions","organizations_url":"https://api.github.com/users/rvanlaak/orgs","repos_url":"https://api.github.com/users/rvanlaak/repos","events_url":"https://api.github.com/users/rvanlaak/events{/privacy}","received_events_url":"https://api.github.com/users/rvanlaak/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T08:44:43Z","updated_at":"2015-11-23T08:44:43Z","body":"For me this happens during a `composer install`, where it isn't possible to pass the right environment. \r\n```\r\nSensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets\r\n```\r\nThe command fails because `dev` is the default environment, and the testing server isn't able to connect to that. The fix @nicolas-grekas proposed also didn't work. Should it also be configured on the `orm` level?"}}