{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/209","labels_url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/209/comments","events_url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/209/events","html_url":"https://github.com/doctrine/DoctrinePHPCRBundle/issues/209","id":97089344,"number":209,"title":"Console command cannot find phpcr_workspaces first time its run","user":{"login":"liquorvicar","id":5172753,"avatar_url":"https://avatars.githubusercontent.com/u/5172753?v=3","gravatar_id":"","url":"https://api.github.com/users/liquorvicar","html_url":"https://github.com/liquorvicar","followers_url":"https://api.github.com/users/liquorvicar/followers","following_url":"https://api.github.com/users/liquorvicar/following{/other_user}","gists_url":"https://api.github.com/users/liquorvicar/gists{/gist_id}","starred_url":"https://api.github.com/users/liquorvicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liquorvicar/subscriptions","organizations_url":"https://api.github.com/users/liquorvicar/orgs","repos_url":"https://api.github.com/users/liquorvicar/repos","events_url":"https://api.github.com/users/liquorvicar/events{/privacy}","received_events_url":"https://api.github.com/users/liquorvicar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-24T16:38:03Z","updated_at":"2015-08-18T08:18:05Z","closed_at":null,"body":"I'm not sure where this error has come from so apologies if this isn't the right place for this issue (and let me know where to post this!)\r\n\r\nWe have an application based on symfony-cmf built on a vagrant vm (using the VMWare provider and puppet as the provisioner). When I bring up a new, fresh vm, the first time I run a console command (any command from what I can see even the default `php app/console` or a cache clear or warmup), I get the following error:\r\n\r\n [PHPCR\\RepositoryException]          \r\n  Unexpected error talking to the backend: An exception occurred while executing 'SELECT 1 FROM phpcr_workspaces WHERE name = ?' with params [\"default\"]:  \r\n  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'schema_name.phpcr_workspaces' doesn't exist                                                 \r\n                                                                                                                         \r\n  [Doctrine\\DBAL\\Exception\\TableNotFoundException]                                                                \r\n  An exception occurred while executing 'SELECT 1 FROM phpcr_workspaces WHERE name = ?' with params [\"default\"]:  \r\n  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'schema_name.phpcr_workspaces' doesn't exist        \r\n                                                                                                            \r\n  [Doctrine\\DBAL\\Driver\\PDOException]                                                                       \r\n  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'schema_name.phpcr_workspaces' doesn't exist                \r\n                                                                   \r\n  [PDOException]                                                                                            \r\n  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'schema_name.phpcr_workspaces' doesn't exist  \r\n                                       \r\nBut the next console command I run (or running the same console command a second time) runs fine.\r\n\r\nI can't work out what's going on and don't really know where to look next. Any ideas?                                                                     "},"comment":{"url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/comments/132116886","html_url":"https://github.com/doctrine/DoctrinePHPCRBundle/issues/209#issuecomment-132116886","issue_url":"https://api.github.com/repos/doctrine/DoctrinePHPCRBundle/issues/209","id":132116886,"user":{"login":"liquorvicar","id":5172753,"avatar_url":"https://avatars.githubusercontent.com/u/5172753?v=3","gravatar_id":"","url":"https://api.github.com/users/liquorvicar","html_url":"https://github.com/liquorvicar","followers_url":"https://api.github.com/users/liquorvicar/followers","following_url":"https://api.github.com/users/liquorvicar/following{/other_user}","gists_url":"https://api.github.com/users/liquorvicar/gists{/gist_id}","starred_url":"https://api.github.com/users/liquorvicar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liquorvicar/subscriptions","organizations_url":"https://api.github.com/users/liquorvicar/orgs","repos_url":"https://api.github.com/users/liquorvicar/repos","events_url":"https://api.github.com/users/liquorvicar/events{/privacy}","received_events_url":"https://api.github.com/users/liquorvicar/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T08:18:05Z","updated_at":"2015-08-18T08:18:05Z","body":"Not easily as we're using it via Symfony CMF and that requires doctrine/phpcr-bundle 1.2.* \r\n\r\nIs there a particular commit/changeset to fix this? Maybe I can patch my local copy of the phpcr-bundle and test it that way."}}