{"action":"created","issue":{"url":"https://api.github.com/repos/dunglas/doctrine-json-odm/issues/49","repository_url":"https://api.github.com/repos/dunglas/doctrine-json-odm","labels_url":"https://api.github.com/repos/dunglas/doctrine-json-odm/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/dunglas/doctrine-json-odm/issues/49/comments","events_url":"https://api.github.com/repos/dunglas/doctrine-json-odm/issues/49/events","html_url":"https://github.com/dunglas/doctrine-json-odm/pull/49","id":346156395,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1MDg4MzQ3","number":49,"title":"Do not store null as a string","user":{"login":"Toflar","id":481937,"node_id":"MDQ6VXNlcjQ4MTkzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/481937?v=4","gravatar_id":"","url":"https://api.github.com/users/Toflar","html_url":"https://github.com/Toflar","followers_url":"https://api.github.com/users/Toflar/followers","following_url":"https://api.github.com/users/Toflar/following{/other_user}","gists_url":"https://api.github.com/users/Toflar/gists{/gist_id}","starred_url":"https://api.github.com/users/Toflar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toflar/subscriptions","organizations_url":"https://api.github.com/users/Toflar/orgs","repos_url":"https://api.github.com/users/Toflar/repos","events_url":"https://api.github.com/users/Toflar/events{/privacy}","received_events_url":"https://api.github.com/users/Toflar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-07-31T11:59:50Z","updated_at":"2018-08-01T07:46:04Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/dunglas/doctrine-json-odm/pulls/49","html_url":"https://github.com/dunglas/doctrine-json-odm/pull/49","diff_url":"https://github.com/dunglas/doctrine-json-odm/pull/49.diff","patch_url":"https://github.com/dunglas/doctrine-json-odm/pull/49.patch"},"body":"If you want to store `null` right now, what happens that in the DB you'll have the string representation `null` stored instead of having the DB really setting it to null.\r\n\r\nIt's not a problem for the serializer but you cannot query the DB with e.g. `IS NOT NULL`."},"comment":{"url":"https://api.github.com/repos/dunglas/doctrine-json-odm/issues/comments/409482462","html_url":"https://github.com/dunglas/doctrine-json-odm/pull/49#issuecomment-409482462","issue_url":"https://api.github.com/repos/dunglas/doctrine-json-odm/issues/49","id":409482462,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTQ4MjQ2Mg==","user":{"login":"Toflar","id":481937,"node_id":"MDQ6VXNlcjQ4MTkzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/481937?v=4","gravatar_id":"","url":"https://api.github.com/users/Toflar","html_url":"https://github.com/Toflar","followers_url":"https://api.github.com/users/Toflar/followers","following_url":"https://api.github.com/users/Toflar/following{/other_user}","gists_url":"https://api.github.com/users/Toflar/gists{/gist_id}","starred_url":"https://api.github.com/users/Toflar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toflar/subscriptions","organizations_url":"https://api.github.com/users/Toflar/orgs","repos_url":"https://api.github.com/users/Toflar/repos","events_url":"https://api.github.com/users/Toflar/events{/privacy}","received_events_url":"https://api.github.com/users/Toflar/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T07:46:04Z","updated_at":"2018-08-01T07:46:04Z","author_association":"CONTRIBUTOR","body":"Yeah sure, but if you want to have „null“ as a string in the DB you should pass it as a string. It‘s the same as if you had e.g. a regular varchar() column."}}
{"actor":{"display_login":"Toflar"}}