{"action":"created","issue":{"url":"https://api.github.com/repos/MetaModels/core/issues/946","repository_url":"https://api.github.com/repos/MetaModels/core","labels_url":"https://api.github.com/repos/MetaModels/core/issues/946/labels{/name}","comments_url":"https://api.github.com/repos/MetaModels/core/issues/946/comments","events_url":"https://api.github.com/repos/MetaModels/core/issues/946/events","html_url":"https://github.com/MetaModels/core/issues/946","id":125169535,"number":946,"title":"Bug: Anlegen eines neuen MM und \"Zurück\"-Button OHNE Speichern => Error","user":{"login":"zonky2","id":1045318,"avatar_url":"https://avatars.githubusercontent.com/u/1045318?v=3","gravatar_id":"","url":"https://api.github.com/users/zonky2","html_url":"https://github.com/zonky2","followers_url":"https://api.github.com/users/zonky2/followers","following_url":"https://api.github.com/users/zonky2/following{/other_user}","gists_url":"https://api.github.com/users/zonky2/gists{/gist_id}","starred_url":"https://api.github.com/users/zonky2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zonky2/subscriptions","organizations_url":"https://api.github.com/users/zonky2/orgs","repos_url":"https://api.github.com/users/zonky2/repos","events_url":"https://api.github.com/users/zonky2/events{/privacy}","received_events_url":"https://api.github.com/users/zonky2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MetaModels/core/labels/backend","name":"backend","color":"0b02e1"},{"url":"https://api.github.com/repos/MetaModels/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/MetaModels/core/labels/DC_General","name":"DC_General","color":"02d7e1"}],"state":"open","locked":false,"assignee":{"login":"stefanheimes","id":988286,"avatar_url":"https://avatars.githubusercontent.com/u/988286?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanheimes","html_url":"https://github.com/stefanheimes","followers_url":"https://api.github.com/users/stefanheimes/followers","following_url":"https://api.github.com/users/stefanheimes/following{/other_user}","gists_url":"https://api.github.com/users/stefanheimes/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanheimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanheimes/subscriptions","organizations_url":"https://api.github.com/users/stefanheimes/orgs","repos_url":"https://api.github.com/users/stefanheimes/repos","events_url":"https://api.github.com/users/stefanheimes/events{/privacy}","received_events_url":"https://api.github.com/users/stefanheimes/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/MetaModels/core/milestones/6","html_url":"https://github.com/MetaModels/core/milestones/2.0.0","labels_url":"https://api.github.com/repos/MetaModels/core/milestones/6/labels","id":570078,"number":6,"title":"2.0.0","description":"","creator":{"login":"discordier","id":940331,"avatar_url":"https://avatars.githubusercontent.com/u/940331?v=3","gravatar_id":"","url":"https://api.github.com/users/discordier","html_url":"https://github.com/discordier","followers_url":"https://api.github.com/users/discordier/followers","following_url":"https://api.github.com/users/discordier/following{/other_user}","gists_url":"https://api.github.com/users/discordier/gists{/gist_id}","starred_url":"https://api.github.com/users/discordier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discordier/subscriptions","organizations_url":"https://api.github.com/users/discordier/orgs","repos_url":"https://api.github.com/users/discordier/repos","events_url":"https://api.github.com/users/discordier/events{/privacy}","received_events_url":"https://api.github.com/users/discordier/received_events","type":"User","site_admin":false},"open_issues":43,"closed_issues":256,"state":"open","created_at":"2014-02-15T02:26:48Z","updated_at":"2016-03-25T15:27:22Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2016-01-06T12:37:45Z","updated_at":"2016-03-26T11:55:16Z","closed_at":null,"body":"Klickt man auf \"Neues MetaModel\" und in der anschließend geöffneten Eingabemaske gleich wieder auf \"Zurück\", kommt folgende Fehlermeldung\r\n\r\nMM core 2.0.0-alpha8\r\n\r\n```\r\nFatal error: Uncaught exception Exception with message Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 (SELECT count(*) AS itemCount FROM) thrown in C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\system\\modules\\core\\library\\Contao\\Database\\Statement.php on line 295\r\n\r\n#0 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\system\\modules\\core\\library\\Contao\\Database\\Statement.php(264): Contao\\Database\\Statement->query()\r\n#1 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\metamodels\\core\\src\\MetaModels\\DcGeneral\\Events\\Table\\MetaModels\\Subscriber.php(182): Contao\\Database\\Statement->execute()\r\n#2 [internal function]: MetaModels\\DcGeneral\\Events\\Table\\MetaModels\\Subscriber->modelToLabel(Object(ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\Event\\ModelToLabelEvent), 'dc-general.view...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#3 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\symfony\\event-dispatcher\\EventDispatcher.php(181): call_user_func(Array, Object(ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\Event\\ModelToLabelEvent), 'dc-general.view...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#4 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\symfony\\event-dispatcher\\EventDispatcher.php(46): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'dc-general.view...', Object(ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\Event\\ModelToLabelEvent))\r\n#5 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\contao-community-alliance\\dc-general\\src\\ContaoCommunityAlliance\\DcGeneral\\Contao\\Subscriber\\FormatModelLabelSubscriber.php(89): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('dc-general.view...', Object(ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\Event\\ModelToLabelEvent))\r\n#6 [internal function]: ContaoCommunityAlliance\\DcGeneral\\Contao\\Subscriber\\FormatModelLabelSubscriber->handleFormatModelLabel(Object(ContaoCommunityAlliance\\DcGeneral\\Event\\FormatModelLabelEvent), 'dc-general.mode...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#7 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\symfony\\event-dispatcher\\EventDispatcher.php(181): call_user_func(Array, Object(ContaoCommunityAlliance\\DcGeneral\\Event\\FormatModelLabelEvent), 'dc-general.mode...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#8 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\symfony\\event-dispatcher\\EventDispatcher.php(46): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'dc-general.mode...', Object(ContaoCommunityAlliance\\DcGeneral\\Event\\FormatModelLabelEvent))\r\n#9 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\contao-community-alliance\\dc-general\\src\\ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\ListView.php(242): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('dc-general.mode...', Object(ContaoCommunityAlliance\\DcGeneral\\Event\\FormatModelLabelEvent))\r\n#10 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\contao-community-alliance\\dc-general\\src\\ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\ListView.php(263): ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\ListView->setListViewLabel(Object(ContaoCommunityAlliance\\DcGeneral\\Data\\DefaultCollection), Array)\r\n#11 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\contao-community-alliance\\dc-general\\src\\ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\ListView.php(330): ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\ListView->viewList(Object(ContaoCommunityAlliance\\DcGeneral\\Data\\DefaultCollection))\r\n#12 [internal function]: ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\ListView->showAll(Object(ContaoCommunityAlliance\\DcGeneral\\Action))\r\n#13 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\contao-community-alliance\\dc-general\\src\\ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\BaseView.php(149): call_user_func_array(Array, Array)\r\n#14 [internal function]: ContaoCommunityAlliance\\DcGeneral\\Contao\\View\\Contao2BackendView\\BaseView->handleAction(Object(ContaoCommunityAlliance\\DcGeneral\\Event\\ActionEvent), 'dc-general.acti...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#15 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\symfony\\event-dispatcher\\EventDispatcher.php(181): call_user_func(Array, Object(ContaoCommunityAlliance\\DcGeneral\\Event\\ActionEvent), 'dc-general.acti...', Object(Symfony\\Component\\EventDispatcher\\EventDispatcher))\r\n#16 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\symfony\\event-dispatcher\\EventDispatcher.php(46): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'dc-general.acti...', Object(ContaoCommunityAlliance\\DcGeneral\\Event\\ActionEvent))\r\n#17 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\contao-community-alliance\\dc-general\\src\\ContaoCommunityAlliance\\DcGeneral\\Controller\\DefaultController.php(131): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('dc-general.acti...', Object(ContaoCommunityAlliance\\DcGeneral\\Event\\ActionEvent))\r\n#18 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\composer\\vendor\\metamodels\\core\\src\\MetaModels\\BackendIntegration\\Module.php(74): ContaoCommunityAlliance\\DcGeneral\\Controller\\DefaultController->handle(Object(ContaoCommunityAlliance\\DcGeneral\\Action))\r\n#19 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\system\\modules\\core\\classes\\Backend.php(423): MetaModels\\BackendIntegration\\Module->generate()\r\n#20 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\system\\modules\\core\\controllers\\BackendMain.php(131): Contao\\Backend->getBackendModule('metamodels')\r\n#21 C:\\Contao2Go\\htdocs\\vhosts\\contao-3.5.x\\contao\\main.php(20): Contao\\BackendMain->run()\r\n#22 {main}\r\n```\r\n\r\n**Workaround:** in der Tabelle tl_metamodel per phpMyAdmin den (letzten) Eintrag löschen, der bei \"name\" und \"tableName\" keine Werte enthält"},"comment":{"url":"https://api.github.com/repos/MetaModels/core/issues/comments/201785180","html_url":"https://github.com/MetaModels/core/issues/946#issuecomment-201785180","issue_url":"https://api.github.com/repos/MetaModels/core/issues/946","id":201785180,"user":{"login":"baumannsven","id":2493263,"avatar_url":"https://avatars.githubusercontent.com/u/2493263?v=3","gravatar_id":"","url":"https://api.github.com/users/baumannsven","html_url":"https://github.com/baumannsven","followers_url":"https://api.github.com/users/baumannsven/followers","following_url":"https://api.github.com/users/baumannsven/following{/other_user}","gists_url":"https://api.github.com/users/baumannsven/gists{/gist_id}","starred_url":"https://api.github.com/users/baumannsven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baumannsven/subscriptions","organizations_url":"https://api.github.com/users/baumannsven/orgs","repos_url":"https://api.github.com/users/baumannsven/repos","events_url":"https://api.github.com/users/baumannsven/events{/privacy}","received_events_url":"https://api.github.com/users/baumannsven/received_events","type":"User","site_admin":false},"created_at":"2016-03-26T11:55:16Z","updated_at":"2016-03-26T11:55:16Z","body":"@discordier um diese Sache kümmere ich mich"}}