mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #348] [CLOSED] [DDC-1819][WIP] Arbitrary object hydrator #8064
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/348
Author: @marijn
Created: 5/14/2012
Status: ❌ Closed
Base:
master← Head:DDC-1819-arbitrary-object-hydrator📝 Commits (3)
1038547Add models for testing arbitrary object hydration.a6e2548Add arbitrary object hydration test suite.a2f9bc0Add class for hydrating arbitrary objects.📊 Changes
7 files changed (+314 additions, -0 deletions)
View changed files
📝
lib/Doctrine/ORM/AbstractQuery.php(+5 -0)📝
lib/Doctrine/ORM/EntityManager.php(+3 -0)➕
lib/Doctrine/ORM/Internal/Hydration/ArbitraryObjectHydrator.php(+54 -0)➕
tests/Doctrine/Tests/Models/DDC1819/DataTransferObject/CustomerAddressView.php(+52 -0)➕
tests/Doctrine/Tests/Models/DDC1819/Entity/Address.php(+71 -0)➕
tests/Doctrine/Tests/Models/DDC1819/Entity/Customer.php(+44 -0)➕
tests/Doctrine/Tests/ORM/Hydration/ArbitraryObjectHydratorTest.php(+85 -0)📄 Description
Initial work (in progress) on a test suite for the arbitrary object hydrator, as discussed in DDC-1819. Any tips are appreciated. I'm not too sure what the test suite should and should not cover.
Other questions I have include:
HYDRATE_ARBITRARY_OBJECTconstant be added to theAbstractQueryclass or theNativeQueryclass? It only makes sense in the former but it might be missed when more constants are added in the future...DDC1819namespace?🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.