{"action":"opened","issue":{"url":"https://api.github.com/repos/coolcsn/CsnUser/issues/42","labels_url":"https://api.github.com/repos/coolcsn/CsnUser/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/coolcsn/CsnUser/issues/42/comments","events_url":"https://api.github.com/repos/coolcsn/CsnUser/issues/42/events","html_url":"https://github.com/coolcsn/CsnUser/issues/42","id":111445291,"number":42,"title":"You cannot serialize or unserialize PDO instances error","user":{"login":"Truper63","id":7408040,"avatar_url":"https://avatars.githubusercontent.com/u/7408040?v=3","gravatar_id":"","url":"https://api.github.com/users/Truper63","html_url":"https://github.com/Truper63","followers_url":"https://api.github.com/users/Truper63/followers","following_url":"https://api.github.com/users/Truper63/following{/other_user}","gists_url":"https://api.github.com/users/Truper63/gists{/gist_id}","starred_url":"https://api.github.com/users/Truper63/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Truper63/subscriptions","organizations_url":"https://api.github.com/users/Truper63/orgs","repos_url":"https://api.github.com/users/Truper63/repos","events_url":"https://api.github.com/users/Truper63/events{/privacy}","received_events_url":"https://api.github.com/users/Truper63/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-14T17:10:06Z","updated_at":"2015-10-14T17:10:06Z","closed_at":null,"body":"After adding to Zend 2 startup project I get the following error when attempting to log in or register.\r\n\r\nYou cannot serialize or unserialize PDO instances\r\n\r\nPartial stack trace.\r\n#0 C:\\Program Files (x86)\\Zend\\ZendServer\\data\\apps\\http\\__default__\\0\\ZendDemoApp\\1.0_2\\vendor\\coolcsn\\csn-user\\view\\csn-user\\registration\\registration.phtml(93): PDO->__sleep()\r\n#1 C:\\Program Files (x86)\\Zend\\ZendServer\\data\\apps\\http\\__default__\\0\\ZendDemoApp\\1.0_2\\vendor\\coolcsn\\csn-user\\view\\csn-user\\registration\\registration.phtml(93): Zend\\Form\\View\\Helper\\Form->openTag(Object(Zend\\Form\\Form))\r\n#2 C:\\Program Files (x86)\\Zend\\ZendServer\\data\\apps\\http\\__default__\\0\\ZendDemoApp\\1.0_2\\vendor\\zendframework\\zend-view\\src\\Renderer\\PhpRenderer.php(501): include('C:\\\\Program File...')\r\n#3 C:\\Program Files (x86)\\Zend\\ZendServer\\data\\apps\\http\\__default__\\0\\ZendDemoApp\\1.0_2\\vendor\\zendframework\\zend-view\\src\\View.php(205): Zend\\View\\Renderer\\PhpRenderer->render(Object(Zend\\View\\Model\\ViewModel))\r\n#4 C:\\Program Files (x86)\\Zend\\ZendServer\\data\\apps\\http\\__default__\\0\\ZendDemoApp\\1.0_2\\vendor\\zendframework\\zend-view\\src\\View.php(233): Zend\\View\\View->render(Object(Zend\\View\\Model\\ViewModel))\r\n#5 C:\\Program Files (x86)\\Zend\\ZendServer\\data\\apps\\http\\__default__\\0\\ZendDemoApp\\1.0_2\\vendor\\zendframework\\zend-view\\src\\View.php(198): Zend\\View\\View->renderChildren(Object(Zend\\View\\Model\\ViewModel))\r\n#6 C:\\Program Files (x86)\\Zend\\ZendServer\\data\\apps\\http\\__default__\\0\\ZendDemoApp\\1.0_2\\vendor\\zendframework\\zend-mvc\\src\\View\\Http\\DefaultRenderingStrategy.php(103): Zend\\View\\View->render(Object(Zend\\View\\Model\\ViewModel))\r\n#7 [internal function]: Zend\\Mvc\\View\\Http\\DefaultRenderingStrategy->render(Object(Zend\\Mvc\\MvcEvent))\r\n"}}