{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/1073","labels_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/1073/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/1073/comments","events_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/1073/events","html_url":"https://github.com/doctrine/mongodb-odm/pull/1073","id":66113641,"number":1073,"title":"Adding bool type","user":{"login":"malarzm","id":4947711,"avatar_url":"https://avatars.githubusercontent.com/u/4947711?v=3","gravatar_id":"","url":"https://api.github.com/users/malarzm","html_url":"https://github.com/malarzm","followers_url":"https://api.github.com/users/malarzm/followers","following_url":"https://api.github.com/users/malarzm/following{/other_user}","gists_url":"https://api.github.com/users/malarzm/gists{/gist_id}","starred_url":"https://api.github.com/users/malarzm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malarzm/subscriptions","organizations_url":"https://api.github.com/users/malarzm/orgs","repos_url":"https://api.github.com/users/malarzm/repos","events_url":"https://api.github.com/users/malarzm/events{/privacy}","received_events_url":"https://api.github.com/users/malarzm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/doctrine/mongodb-odm/labels/idea","name":"idea","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-04-03T09:14:54Z","updated_at":"2015-04-04T07:21:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/pulls/1073","html_url":"https://github.com/doctrine/mongodb-odm/pull/1073","diff_url":"https://github.com/doctrine/mongodb-odm/pull/1073.diff","patch_url":"https://github.com/doctrine/mongodb-odm/pull/1073.patch"},"body":"I keep using ``@ODM\\Bool`` annotation and later swearing it doesn't exist and changing to full ``@ODM\\Boolean``. Here are some pros of adding this:\r\n\r\n1. We have ``int`` type, not ``integer``\r\n2. [Scalar Type Hints](https://wiki.php.net/rfc/scalar_type_hints_v5) are in favor of ``bool``\r\n3. ``bool`` is common in all languages\r\n\r\nThe only downside of this I see is that if somebody would have already done that on his own via ``Type::addType`` he will get exception now."},"comment":{"url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/comments/89515418","html_url":"https://github.com/doctrine/mongodb-odm/pull/1073#issuecomment-89515418","issue_url":"https://api.github.com/repos/doctrine/mongodb-odm/issues/1073","id":89515418,"user":{"login":"smolinari","id":3314957,"avatar_url":"https://avatars.githubusercontent.com/u/3314957?v=3","gravatar_id":"","url":"https://api.github.com/users/smolinari","html_url":"https://github.com/smolinari","followers_url":"https://api.github.com/users/smolinari/followers","following_url":"https://api.github.com/users/smolinari/following{/other_user}","gists_url":"https://api.github.com/users/smolinari/gists{/gist_id}","starred_url":"https://api.github.com/users/smolinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smolinari/subscriptions","organizations_url":"https://api.github.com/users/smolinari/orgs","repos_url":"https://api.github.com/users/smolinari/repos","events_url":"https://api.github.com/users/smolinari/events{/privacy}","received_events_url":"https://api.github.com/users/smolinari/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T07:21:30Z","updated_at":"2015-04-04T07:21:30Z","body":"@malarzm Oh, duh! Thanks for reminding me. I actually just read a few weeks ago [the blog about the push Symfony is making on DX](http://symfony.com/blog/making-the-symfony-experience-exceptional). I should have guessed that. I just couldn't put it together in context to the discussion here. Enough excuses. I am simply a noob. LOL!\r\n\r\nScott "}}