mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DQL functions return type is respected by getSingleResult but not getSingleScalarResult.
#6595
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 @VincentLanglet on GitHub (Dec 24, 2020).
Since https://github.com/doctrine/orm/pull/7941, DQL functions can specify return type.
For instance
COUNTis supposed to return anint.But if
getSingleScalarResultis used instead ofgetSingleResultthe return type is not used.It's maybe related to https://github.com/doctrine/orm/issues/8155, but can be a first smaller step