{"action":"created","issue":{"url":"https://api.github.com/repos/microweber/microweber/issues/285","labels_url":"https://api.github.com/repos/microweber/microweber/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/microweber/microweber/issues/285/comments","events_url":"https://api.github.com/repos/microweber/microweber/issues/285/events","html_url":"https://github.com/microweber/microweber/issues/285","id":64958057,"number":285,"title":"Category saving is failing","user":{"login":"MLoureiro","id":3427665,"avatar_url":"https://avatars.githubusercontent.com/u/3427665?v=3","gravatar_id":"","url":"https://api.github.com/users/MLoureiro","html_url":"https://github.com/MLoureiro","followers_url":"https://api.github.com/users/MLoureiro/followers","following_url":"https://api.github.com/users/MLoureiro/following{/other_user}","gists_url":"https://api.github.com/users/MLoureiro/gists{/gist_id}","starred_url":"https://api.github.com/users/MLoureiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MLoureiro/subscriptions","organizations_url":"https://api.github.com/users/MLoureiro/orgs","repos_url":"https://api.github.com/users/MLoureiro/repos","events_url":"https://api.github.com/users/MLoureiro/events{/privacy}","received_events_url":"https://api.github.com/users/MLoureiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-28T15:59:48Z","updated_at":"2015-03-28T16:58:20Z","closed_at":null,"body":"When I'm creating an category it fails because of empty columns:\r\n\r\n```\r\nSQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'position' at row 1 (SQL: insert into `mytest_pt_categories` (`rel_id`, `data_type`, `parent_id`, `title`, `position`, `description`, `users_can_create_content`, `rel_type`, `is_deleted`, `created_at`, `updated_at`, `created_by`, `edited_by`) values (5, category, 0, test, , , 0, content, 0, 2015-03-28 15:52:18, 2015-03-28 15:52:18, 1, 1))\r\n```\r\n\r\nLooking at stack trace, the content is being passed as empty string `''`:\r\n\r\n```\r\nat Connection->runQueryCallback('insert into `chezmoi_pt_categories` (`rel_id`, `data_type`, `parent_id`, `title`, `position`, `description`, `users_can_create_content`, `rel_type`, `is_deleted`, `created_at`, `updated_at`, `created_by`, `edited_by`) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)', array('5', 'category', '0', 'Bazinga', '', '', '0', 'content', '0', '2015-03-28 15:52:18', '2015-03-28 15:52:18', '1', '1'), object(Closure)) in Connection.php line 570\r\n```\r\n\r\nAFAICT it's expecting a 0 (zero).\r\n\r\nI'm using latest v1 (with https://github.com/microweber/microweber/commit/6f3dd9a5f05a9d8b22ea9fbf0147249d0158a55b)"},"comment":{"url":"https://api.github.com/repos/microweber/microweber/issues/comments/87268055","html_url":"https://github.com/microweber/microweber/issues/285#issuecomment-87268055","issue_url":"https://api.github.com/repos/microweber/microweber/issues/285","id":87268055,"user":{"login":"peter-mw","id":5698247,"avatar_url":"https://avatars.githubusercontent.com/u/5698247?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-mw","html_url":"https://github.com/peter-mw","followers_url":"https://api.github.com/users/peter-mw/followers","following_url":"https://api.github.com/users/peter-mw/following{/other_user}","gists_url":"https://api.github.com/users/peter-mw/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-mw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-mw/subscriptions","organizations_url":"https://api.github.com/users/peter-mw/orgs","repos_url":"https://api.github.com/users/peter-mw/repos","events_url":"https://api.github.com/users/peter-mw/events{/privacy}","received_events_url":"https://api.github.com/users/peter-mw/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T16:58:20Z","updated_at":"2015-03-28T16:58:20Z","body":"i just moved the save function to be mapped on the database_manager \r\n\r\nhttps://github.com/microweber/microweber/blob/1.0/src/Microweber/Database.php#L285\r\n\r\nCan you download it again, just pushed"}}