{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/bake/issues/60","labels_url":"https://api.github.com/repos/cakephp/bake/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/bake/issues/60/comments","events_url":"https://api.github.com/repos/cakephp/bake/issues/60/events","html_url":"https://github.com/cakephp/bake/issues/60","id":63832839,"number":60,"title":"SQLServer 2012, Bake Issue when Views present.","user":{"login":"tgr0ss","id":1454333,"avatar_url":"https://avatars.githubusercontent.com/u/1454333?v=3","gravatar_id":"","url":"https://api.github.com/users/tgr0ss","html_url":"https://github.com/tgr0ss","followers_url":"https://api.github.com/users/tgr0ss/followers","following_url":"https://api.github.com/users/tgr0ss/following{/other_user}","gists_url":"https://api.github.com/users/tgr0ss/gists{/gist_id}","starred_url":"https://api.github.com/users/tgr0ss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgr0ss/subscriptions","organizations_url":"https://api.github.com/users/tgr0ss/orgs","repos_url":"https://api.github.com/users/tgr0ss/repos","events_url":"https://api.github.com/users/tgr0ss/events{/privacy}","received_events_url":"https://api.github.com/users/tgr0ss/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/bake/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cakephp/bake/milestones/3","html_url":"https://github.com/cakephp/bake/milestones/1.0.3","labels_url":"https://api.github.com/repos/cakephp/bake/milestones/3/labels","id":1037798,"number":3,"title":"1.0.3","description":"","creator":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":6,"state":"closed","created_at":"2015-03-25T08:45:16Z","updated_at":"2015-04-06T03:24:30Z","due_on":null,"closed_at":"2015-04-06T03:24:16Z"},"comments":10,"created_at":"2015-03-23T21:07:50Z","updated_at":"2015-05-06T19:47:45Z","closed_at":"2015-04-02T01:42:51Z","body":"When trying to bake a table in a SQL 2012 database that has table views it provides the following errors, this has been tested w/ deleting the view in question, which then provides an error w/ the next view down the list.   Also has been tested w/ exact db with the views deleted and no bake issues\r\n\r\n015-03-23 21:07:04 Error: [Cake\\Database\\Exception] Cannot describe vwAccountsSummaryView. It has 0 columns.\r\nStack Trace:\r\n#0 F:\\xampp\\htdocs\\test\\app\\vendor\\cakephp\\cakephp\\src\\Database\\Schema\\CachedCollection.php(65): Cake\\Database\\Schema\\Collection->describe('vwAccountsSumma...', Array)\r\n#1 F:\\xampp\\htdocs\\test\\app\\vendor\\cakephp\\cakephp\\src\\ORM\\Table.php(422): Cake\\Database\\Schema\\CachedCollection->describe('vwAccountsSumma...')\r\n#2 F:\\xampp\\htdocs\\test\\app\\vendor\\cakephp\\bake\\src\\Shell\\Task\\ModelTask.php(286): Cake\\ORM\\Table->schema()\r\n#3 F:\\xampp\\htdocs\\test\\app\\vendor\\cakephp\\bake\\src\\Shell\\Task\\ModelTask.php(202): Bake\\Shell\\Task\\ModelTask->findHasMany(Object(Cake\\ORM\\Table), Array)\r\n#4 F:\\xampp\\htdocs\\test\\app\\vendor\\cakephp\\bake\\src\\Shell\\Task\\ModelTask.php(109): Bake\\Shell\\Task\\ModelTask->getAssociations(Object(Cake\\ORM\\Table))\r\n#5 F:\\xampp\\htdocs\\test\\app\\vendor\\cakephp\\bake\\src\\Shell\\Task\\ModelTask.php(95): Bake\\Shell\\Task\\ModelTask->bake('Sites')\r\n#6 [internal function]: Bake\\Shell\\Task\\ModelTask->main('sites')\r\n#7 F:\\xampp\\htdocs\\test\\app\\vendor\\cakephp\\cakephp\\src\\Console\\Shell.php(387): call_user_func_array(Array, Array)\r\n#8 F:\\xampp\\htdocs\\test\\app\\vendor\\cakephp\\cakephp\\src\\Console\\Shell.php(382): Cake\\Console\\Shell->runCommand(Array, false)\r\n#9 F:\\xampp\\htdocs\\test\\app\\vendor\\cakephp\\cakephp\\src\\Console\\ShellDispatcher.php(200): Cake\\Console\\Shell->runCommand(Array, true)\r\n#10 F:\\xampp\\htdocs\\test\\app\\vendor\\cakephp\\cakephp\\src\\Console\\ShellDispatcher.php(171): Cake\\Console\\ShellDispatcher->_dispatch()\r\n#11 F:\\xampp\\htdocs\\test\\app\\vendor\\cakephp\\cakephp\\src\\Console\\ShellDispatcher.php(122): Cake\\Console\\ShellDispatcher->dispatch()\r\n#12 F:\\xampp\\htdocs\\test\\app\\bin\\cake.php(20): Cake\\Console\\ShellDispatcher::run(Array)\r\n#13 {main}\r\n"},"comment":{"url":"https://api.github.com/repos/cakephp/bake/issues/comments/99584983","html_url":"https://github.com/cakephp/bake/issues/60#issuecomment-99584983","issue_url":"https://api.github.com/repos/cakephp/bake/issues/60","id":99584983,"user":{"login":"tgr0ss","id":1454333,"avatar_url":"https://avatars.githubusercontent.com/u/1454333?v=3","gravatar_id":"","url":"https://api.github.com/users/tgr0ss","html_url":"https://github.com/tgr0ss","followers_url":"https://api.github.com/users/tgr0ss/followers","following_url":"https://api.github.com/users/tgr0ss/following{/other_user}","gists_url":"https://api.github.com/users/tgr0ss/gists{/gist_id}","starred_url":"https://api.github.com/users/tgr0ss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgr0ss/subscriptions","organizations_url":"https://api.github.com/users/tgr0ss/orgs","repos_url":"https://api.github.com/users/tgr0ss/repos","events_url":"https://api.github.com/users/tgr0ss/events{/privacy}","received_events_url":"https://api.github.com/users/tgr0ss/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T19:47:44Z","updated_at":"2015-05-06T19:47:44Z","body":"Thank you."}}