mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #1445] Allow access to Query#getResultSetMapping #9501
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?
Original Pull Request: https://github.com/doctrine/orm/pull/1445
State: closed
Merged: No
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 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? (works fine at first glance)
Related:
ea14bcff4aThanks!