mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Add Type (discriminator) function #7219
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 @raziel057 on GitHub (Sep 5, 2023).
Summary
It would be nice to add native support for TYPE function. When you have entities mapped with a discriminator it's can be useful to be able to get the discriminator information without having to hydrate objects (with scalar or array hydration).
It can be implemented in simple and efficient way as we already have all information:
https://gist.github.com/jasonhofer/8420677
What do you think about this?