{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/191","labels_url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/191/comments","events_url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/191/events","html_url":"https://github.com/doctrine/DoctrinePHPCRBundle/pull/191","id":62763914,"number":191,"title":"Close connections and clear managers on shutdown","user":{"login":"EmmanuelVella","id":663607,"avatar_url":"https://avatars.githubusercontent.com/u/663607?v=3","gravatar_id":"","url":"https://api.github.com/users/EmmanuelVella","html_url":"https://github.com/EmmanuelVella","followers_url":"https://api.github.com/users/EmmanuelVella/followers","following_url":"https://api.github.com/users/EmmanuelVella/following{/other_user}","gists_url":"https://api.github.com/users/EmmanuelVella/gists{/gist_id}","starred_url":"https://api.github.com/users/EmmanuelVella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmmanuelVella/subscriptions","organizations_url":"https://api.github.com/users/EmmanuelVella/orgs","repos_url":"https://api.github.com/users/EmmanuelVella/repos","events_url":"https://api.github.com/users/EmmanuelVella/events{/privacy}","received_events_url":"https://api.github.com/users/EmmanuelVella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-18T18:15:50Z","updated_at":"2015-03-18T18:41:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/pulls/191","html_url":"https://github.com/doctrine/DoctrinePHPCRBundle/pull/191","diff_url":"https://github.com/doctrine/DoctrinePHPCRBundle/pull/191.diff","patch_url":"https://github.com/doctrine/DoctrinePHPCRBundle/pull/191.patch"},"body":"Related to https://github.com/doctrine/DoctrinePHPCRBundle/issues/175, inspired from https://github.com/doctrine/DoctrineBundle/pull/366\r\n\r\nLike @stof said, when shutting down the kernel, the connections should be closed to avoid leaking connections during tests, which could reach the connection limit. The document managers should also cleared to give more chances to entities to be garbage collected."},"comment":{"url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/comments/83116237","html_url":"https://github.com/doctrine/DoctrinePHPCRBundle/pull/191#issuecomment-83116237","issue_url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/191","id":83116237,"user":{"login":"EmmanuelVella","id":663607,"avatar_url":"https://avatars.githubusercontent.com/u/663607?v=3","gravatar_id":"","url":"https://api.github.com/users/EmmanuelVella","html_url":"https://github.com/EmmanuelVella","followers_url":"https://api.github.com/users/EmmanuelVella/followers","following_url":"https://api.github.com/users/EmmanuelVella/following{/other_user}","gists_url":"https://api.github.com/users/EmmanuelVella/gists{/gist_id}","starred_url":"https://api.github.com/users/EmmanuelVella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmmanuelVella/subscriptions","organizations_url":"https://api.github.com/users/EmmanuelVella/orgs","repos_url":"https://api.github.com/users/EmmanuelVella/repos","events_url":"https://api.github.com/users/EmmanuelVella/events{/privacy}","received_events_url":"https://api.github.com/users/EmmanuelVella/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T18:41:10Z","updated_at":"2015-03-18T18:41:10Z","body":"I think it already happens in your case because you use the doctrine DBAL transport. I'm using jackrabbit and I confirm that during my functionnal tests, the connections are not closed automatically."}}