mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3805: [GH-1445] Allow access to Query#getResultSetMapping #4662
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jul 1, 2015).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of Padam87:
Url: https://github.com/doctrine/doctrine2/pull/1445
Message:
Hi,
I've recently came across an issue which would require modifying the result set mapping of a query made with query builder.
I would like to SUM a field with a _custom type_, which is stored as an int, but is normally converted to a custom value object.
When using an aggregation function, the returned result is a simple int.
Is there any reason the
Query#getResultSetMappinghas to be protected?Is there any danger if I do this?
Related:
ea14bcff4aThanks!
@beberlei commented on GitHub (Feb 16, 2020):
Would it be possible to implement this with the
NEWoperator in DQL?