mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #7263] Add quoted column keys while hydrating column information. #10399
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/7263
State: closed
Merged: No
We can't hydrate column information while using a quote strategy because all or the most internal doctrine mappings use the quoted column alias name.
While hydrating a result row data we know we've only got the unquoted column alias and there is no way to quote an existing column alias.
So we need to split the column alias back to the real column name and the alias counter.
This is easy because we know it's get generated in the format '<column_name>_' by the basic entity persister.
With this information we can use the current quote strategy to generate a quoted column alias.
This PR should solve at least the following issues: