Column Hydrator #6869

Open
opened 2026-01-22 15:40:23 +01:00 by admin · 0 comments
Owner

Originally created by @ThomasLandauer on GitHub (Nov 6, 2021).

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

I'm using @ostrolucky 's Column Hydrator from https://gist.github.com/ostrolucky/f9f1e0b271357573fde55b7a2ba91a32
However, since DBAL 3, it's deprecated. So I'm suggesting to integrate its functionality directly into Doctrine:

Example:

  • ArrayHydrator:
  • ColumnHydrator: [1, 2]

I could try if I can create a PR, but I'd need somebody to help me!

If you don't want to integrate this into Doctrine, then please update (or help me updating) the docs chapter "Custom Hydration Modes" at https://www.doctrine-project.org/projects/doctrine-orm/en/2.10/reference/dql-doctrine-query-language.html#custom-hydration-modes, cause (as far as I can see) this is outdated too.

Originally created by @ThomasLandauer on GitHub (Nov 6, 2021). ### Feature Request <!-- Fill in the relevant information below to help triage your issue. --> | Q | A |------------ | ------ | New Feature | yes | RFC | no | BC Break | no #### Summary I'm using @ostrolucky 's Column Hydrator from https://gist.github.com/ostrolucky/f9f1e0b271357573fde55b7a2ba91a32 However, since DBAL 3, it's deprecated. So I'm suggesting to integrate its functionality directly into Doctrine: Example: * ArrayHydrator: [['id' => 1], ['id' => 2]] * ColumnHydrator: [1, 2] I could try if I can create a PR, but I'd need somebody to help me! If you don't want to integrate this into Doctrine, then please update (or help me updating) the docs chapter "Custom Hydration Modes" at https://www.doctrine-project.org/projects/doctrine-orm/en/2.10/reference/dql-doctrine-query-language.html#custom-hydration-modes, cause (as far as I can see) this is outdated too.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6869