{"action":"opened","issue":{"url":"https://api.github.com/repos/nextras/orm/issues/78","labels_url":"https://api.github.com/repos/nextras/orm/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/nextras/orm/issues/78/comments","events_url":"https://api.github.com/repos/nextras/orm/issues/78/events","html_url":"https://github.com/nextras/orm/issues/78","id":59424583,"number":78,"title":"Getting null field with default modifier will return default value","user":{"login":"jtojnar","id":705123,"avatar_url":"https://avatars.githubusercontent.com/u/705123?v=3","gravatar_id":"","url":"https://api.github.com/users/jtojnar","html_url":"https://github.com/jtojnar","followers_url":"https://api.github.com/users/jtojnar/followers","following_url":"https://api.github.com/users/jtojnar/following{/other_user}","gists_url":"https://api.github.com/users/jtojnar/gists{/gist_id}","starred_url":"https://api.github.com/users/jtojnar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtojnar/subscriptions","organizations_url":"https://api.github.com/users/jtojnar/orgs","repos_url":"https://api.github.com/users/jtojnar/repos","events_url":"https://api.github.com/users/jtojnar/events{/privacy}","received_events_url":"https://api.github.com/users/jtojnar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-01T23:55:50Z","updated_at":"2015-03-01T23:55:50Z","closed_at":null,"body":"Is this expected behaviour? I suppose not as it isn’t IMHO consistent with [EntityDefaultValueTest::testSetNULLValue()](https://github.com/nextras/orm/blob/master/tests/cases/integration/Entity/entity.defaultValue.phpt#L41)\r\n\r\nDemonstration: https://github.com/jtojnar/orm-demo/compare/master...jtojnar:reading-null-default-now\r\n\r\nIt has been around for a while, even with nette/database."}}