{"action":"created","issue":{"url":"https://api.github.com/repos/ramsey/uuid-doctrine/issues/21","repository_url":"https://api.github.com/repos/ramsey/uuid-doctrine","labels_url":"https://api.github.com/repos/ramsey/uuid-doctrine/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ramsey/uuid-doctrine/issues/21/comments","events_url":"https://api.github.com/repos/ramsey/uuid-doctrine/issues/21/events","html_url":"https://github.com/ramsey/uuid-doctrine/issues/21","id":191912989,"number":21,"title":"[Question] ConversionException or return as-is","user":{"login":"phoenixgao","id":853338,"avatar_url":"https://avatars.githubusercontent.com/u/853338?v=3","gravatar_id":"","url":"https://api.github.com/users/phoenixgao","html_url":"https://github.com/phoenixgao","followers_url":"https://api.github.com/users/phoenixgao/followers","following_url":"https://api.github.com/users/phoenixgao/following{/other_user}","gists_url":"https://api.github.com/users/phoenixgao/gists{/gist_id}","starred_url":"https://api.github.com/users/phoenixgao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phoenixgao/subscriptions","organizations_url":"https://api.github.com/users/phoenixgao/orgs","repos_url":"https://api.github.com/users/phoenixgao/repos","events_url":"https://api.github.com/users/phoenixgao/events{/privacy}","received_events_url":"https://api.github.com/users/phoenixgao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-28T03:37:34Z","updated_at":"2016-11-28T15:15:27Z","closed_at":null,"body":"I have a field that is uuid, when I search this field with an invalid uuid (a string), it throws a ConversionException, but I was expecting database gives me a not found and return null.\r\n\r\nIs there any advantage having this exception?"},"comment":{"url":"https://api.github.com/repos/ramsey/uuid-doctrine/issues/comments/263296896","html_url":"https://github.com/ramsey/uuid-doctrine/issues/21#issuecomment-263296896","issue_url":"https://api.github.com/repos/ramsey/uuid-doctrine/issues/21","id":263296896,"user":{"login":"lcobucci","id":201963,"avatar_url":"https://avatars.githubusercontent.com/u/201963?v=3","gravatar_id":"","url":"https://api.github.com/users/lcobucci","html_url":"https://github.com/lcobucci","followers_url":"https://api.github.com/users/lcobucci/followers","following_url":"https://api.github.com/users/lcobucci/following{/other_user}","gists_url":"https://api.github.com/users/lcobucci/gists{/gist_id}","starred_url":"https://api.github.com/users/lcobucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcobucci/subscriptions","organizations_url":"https://api.github.com/users/lcobucci/orgs","repos_url":"https://api.github.com/users/lcobucci/repos","events_url":"https://api.github.com/users/lcobucci/events{/privacy}","received_events_url":"https://api.github.com/users/lcobucci/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T15:15:27Z","updated_at":"2016-11-28T15:15:27Z","body":"@phoenixgao @ramsey it's exactly that... before even running the query DBAL tries to [convert the data into dabase type](https://github.com/doctrine/dbal/blob/51f6934c19635fa1c69680482522c734a0121463/lib/Doctrine/DBAL/Connection.php#L1488).\r\n\r\nYou would never have a `null` return in that case."}}
{"actor":{"display_login":"lcobucci"}}