{"action":"created","issue":{"url":"https://api.github.com/repos/beberlei/DoctrineExtensions/issues/195","repository_url":"https://api.github.com/repos/beberlei/DoctrineExtensions","labels_url":"https://api.github.com/repos/beberlei/DoctrineExtensions/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/beberlei/DoctrineExtensions/issues/195/comments","events_url":"https://api.github.com/repos/beberlei/DoctrineExtensions/issues/195/events","html_url":"https://github.com/beberlei/DoctrineExtensions/issues/195","id":144634207,"number":195,"title":"Add Type function","user":{"login":"enumag","id":539462,"avatar_url":"https://avatars.githubusercontent.com/u/539462?v=3","gravatar_id":"","url":"https://api.github.com/users/enumag","html_url":"https://github.com/enumag","followers_url":"https://api.github.com/users/enumag/followers","following_url":"https://api.github.com/users/enumag/following{/other_user}","gists_url":"https://api.github.com/users/enumag/gists{/gist_id}","starred_url":"https://api.github.com/users/enumag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enumag/subscriptions","organizations_url":"https://api.github.com/users/enumag/orgs","repos_url":"https://api.github.com/users/enumag/repos","events_url":"https://api.github.com/users/enumag/events{/privacy}","received_events_url":"https://api.github.com/users/enumag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-30T15:46:39Z","updated_at":"2016-03-30T16:32:07Z","closed_at":null,"body":"Hi, I'd like to add a TYPE function based on [this gist](https://gist.github.com/jasonhofer/8420677) from @jasonhofer. It is not database specific so I'm not sure where to put it or if it is even wanted in this package.\r\n\r\nOf course if Doctrine has a different way to get to the discriminator field in DQL, I'd like to know."},"comment":{"url":"https://api.github.com/repos/beberlei/DoctrineExtensions/issues/comments/203514591","html_url":"https://github.com/beberlei/DoctrineExtensions/issues/195#issuecomment-203514591","issue_url":"https://api.github.com/repos/beberlei/DoctrineExtensions/issues/195","id":203514591,"user":{"login":"stevelacey","id":289531,"avatar_url":"https://avatars.githubusercontent.com/u/289531?v=3","gravatar_id":"","url":"https://api.github.com/users/stevelacey","html_url":"https://github.com/stevelacey","followers_url":"https://api.github.com/users/stevelacey/followers","following_url":"https://api.github.com/users/stevelacey/following{/other_user}","gists_url":"https://api.github.com/users/stevelacey/gists{/gist_id}","starred_url":"https://api.github.com/users/stevelacey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevelacey/subscriptions","organizations_url":"https://api.github.com/users/stevelacey/orgs","repos_url":"https://api.github.com/users/stevelacey/repos","events_url":"https://api.github.com/users/stevelacey/events{/privacy}","received_events_url":"https://api.github.com/users/stevelacey/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T16:32:07Z","updated_at":"2016-03-30T16:32:07Z","body":"Not sure if this library is really the place for this, but I imagine somewhere like `DoctrineExtensions\\Query\\AST\\Functions\\TypeFunction` would be the place to put it."}}