Custom quote strategy breaks row hydration #5992

Closed
opened 2026-01-22 15:24:13 +01:00 by admin · 1 comment
Owner

Originally created by @michaelpetri on GitHub (Jun 15, 2018).

Originally assigned to: @ostrolucky on GitHub.

Bug Report

Q A
BC Break no
Version 2.6

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

  1. Create a custom quote strategy with at least quoting column names and aliases.
  2. Use an entity repository to find some entities.

Expected behavior

Getting my entities.

Solution

Generate a quoted column alias to fetch the hydrate the column information

Originally created by @michaelpetri on GitHub (Jun 15, 2018). Originally assigned to: @ostrolucky on GitHub. ### Bug Report | Q | A |------------ | ------ | BC Break | no | Version | 2.6 #### 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 1. Create a custom quote strategy with at least quoting column names and aliases. 2. Use an entity repository to find some entities. #### Expected behavior Getting my entities. #### Solution Generate a quoted column alias to fetch the hydrate the column information #### Related issue * https://github.com/doctrine/doctrine2/issues/5654
admin closed this issue 2026-01-22 15:24:13 +01:00
Author
Owner

@ostrolucky commented on GitHub (Aug 7, 2018):

Quoting strategy has been removed in Doctrine 3.x, now everything is quoted

@ostrolucky commented on GitHub (Aug 7, 2018): Quoting strategy has been removed in Doctrine 3.x, now everything is quoted
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5992