mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Custom quote strategy breaks row hydration #5992
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 @michaelpetri on GitHub (Jun 15, 2018).
Originally assigned to: @ostrolucky on GitHub.
Bug Report
Summary
While using a custom quote strategy with at least quoting column names and column aliases doctrine can't hydrate row data, because all or maybe the most internal column mappings are stored quoted and the simple object hydrator uses the result key names, which are unquoted, to hydrate the column information.
Current behavior
The whole hydrate process breaks.
How to reproduce
Expected behavior
Getting my entities.
Solution
Generate a quoted column alias to fetch the hydrate the column information
Related issue
@ostrolucky commented on GitHub (Aug 7, 2018):
Quoting strategy has been removed in Doctrine 3.x, now everything is quoted