Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom quote strategy breaks row hydration #7262

Closed
michaelpetri opened this issue Jun 15, 2018 · 1 comment
Closed

Custom quote strategy breaks row hydration #7262

michaelpetri opened this issue Jun 15, 2018 · 1 comment
Assignees

Comments

@michaelpetri
Copy link

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

@ostrolucky
Copy link
Member

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

@ostrolucky ostrolucky self-assigned this Aug 10, 2018
@greg0ire greg0ire removed this from the 3.0.0 milestone Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants