{"action":"created","issue":{"url":"https://api.github.com/repos/bcosca/fatfree/issues/830","labels_url":"https://api.github.com/repos/bcosca/fatfree/issues/830/labels{/name}","comments_url":"https://api.github.com/repos/bcosca/fatfree/issues/830/comments","events_url":"https://api.github.com/repos/bcosca/fatfree/issues/830/events","html_url":"https://github.com/bcosca/fatfree/issues/830","id":75145077,"number":830,"title":"PDO syntax error","user":{"login":"justasSav","id":1171982,"avatar_url":"https://avatars.githubusercontent.com/u/1171982?v=3","gravatar_id":"","url":"https://api.github.com/users/justasSav","html_url":"https://github.com/justasSav","followers_url":"https://api.github.com/users/justasSav/followers","following_url":"https://api.github.com/users/justasSav/following{/other_user}","gists_url":"https://api.github.com/users/justasSav/gists{/gist_id}","starred_url":"https://api.github.com/users/justasSav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justasSav/subscriptions","organizations_url":"https://api.github.com/users/justasSav/orgs","repos_url":"https://api.github.com/users/justasSav/repos","events_url":"https://api.github.com/users/justasSav/events{/privacy}","received_events_url":"https://api.github.com/users/justasSav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-11T09:03:54Z","updated_at":"2015-05-11T09:47:35Z","closed_at":null,"body":"Sqlite database.\r\n\r\nschema:\r\nusers (\r\n    email VARCHAR(255),\r\n    password VARCHAR(255)\r\n);\r\n\r\nexample code:\r\n\r\n$user=new DB\\SQL\\Mapper($db,'users');\r\n$user->email = 'email';\r\n$user->password = 'password';\r\n$user->save();\r\n\r\nSaves to database, but renders errors at the end:\r\n\r\nPDO: near \" \": syntax error\r\n\r\n/lib/db/sql/mapper.php:262 DB\\SQL->exec()\r\n/lib/db/sql/mapper.php:302 DB\\SQL\\Mapper->select()\r\n/lib/db/cursor.php:164 DB\\SQL\\Mapper->find()\r\n/lib/db/sql/mapper.php:412 DB\\Cursor->load()\r\n/lib/db/cursor.php:231 DB\\SQL\\Mapper->insert()\r\n/index.php:131 DB\\Cursor->save()\r\n/index.php:151 Base->run()"},"comment":{"url":"https://api.github.com/repos/bcosca/fatfree/issues/comments/100837104","html_url":"https://github.com/bcosca/fatfree/issues/830#issuecomment-100837104","issue_url":"https://api.github.com/repos/bcosca/fatfree/issues/830","id":100837104,"user":{"login":"ikkez","id":1177647,"avatar_url":"https://avatars.githubusercontent.com/u/1177647?v=3","gravatar_id":"","url":"https://api.github.com/users/ikkez","html_url":"https://github.com/ikkez","followers_url":"https://api.github.com/users/ikkez/followers","following_url":"https://api.github.com/users/ikkez/following{/other_user}","gists_url":"https://api.github.com/users/ikkez/gists{/gist_id}","starred_url":"https://api.github.com/users/ikkez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikkez/subscriptions","organizations_url":"https://api.github.com/users/ikkez/orgs","repos_url":"https://api.github.com/users/ikkez/repos","events_url":"https://api.github.com/users/ikkez/events{/privacy}","received_events_url":"https://api.github.com/users/ikkez/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T09:47:35Z","updated_at":"2015-05-11T09:47:35Z","body":"The SQL Mapper requires at least one primary key field. I guess the error occurs, because it's missing in your schema."}}