[PR #835] [MERGED] Value objects (Based on #634) #8773

Open
opened 2026-01-22 16:01:39 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/835
Author: @schmittjoh
Created: 11/1/2013
Status: Merged
Merged: 2/8/2014
Merged by: @beberlei

Base: masterHead: ValueObjects


📝 Commits (10+)

  • b4b9709 adds a new output format
  • 02d34bb [DDC-93] Started ValueObjectsTest
  • 32988b3 [DDC-93] Parse @Embedded and @Embeddable during SchemaTool processing to make parsing work.
  • 0204a8b [DDC-93] Implement first working version of value objects using a ReflectionProxy object, bypassing changes to UnitOfWork, Persisters and Hydrators.
  • 011776f [DDC-93] Add some TODOs in code.
  • 879ab6e [DDC-93] Show CRUD with value objects with current change tracking assumptions.
  • 9613f1d [DDC-93] Rename ReflectionProxy to ReflectionEmbeddedProperty, Add DQL test with Object and Array Hydration.
  • 38b041d Merge remote-tracking branch 'origin/ValueObjects'
  • c67ac8a adds support for selecting based on embedded fields
  • 30897c3 adds tests for update/delete DQL queries

📊 Changes

25 files changed (+759 additions, -10 deletions)

View changed files

📝 UPGRADE.md (+5 -0)
📝 docs/en/index.rst (+1 -0)
📝 docs/en/toc.rst (+1 -0)
docs/en/tutorials/embeddables.rst (+83 -0)
📝 doctrine-mapping.xsd (+18 -0)
📝 lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php (+24 -0)
📝 lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php (+91 -7)
📝 lib/Doctrine/ORM/Mapping/DefaultNamingStrategy.php (+8 -0)
📝 lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php (+9 -1)
📝 lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php (+2 -0)
📝 lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php (+18 -0)
📝 lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php (+12 -0)
lib/Doctrine/ORM/Mapping/Embeddable.php (+28 -0)
lib/Doctrine/ORM/Mapping/Embedded.php (+38 -0)
📝 lib/Doctrine/ORM/Mapping/NamingStrategy.php (+10 -0)
lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php (+66 -0)
📝 lib/Doctrine/ORM/Mapping/UnderscoreNamingStrategy.php (+8 -0)
📝 lib/Doctrine/ORM/Query/Parser.php (+7 -1)
📝 lib/Doctrine/ORM/Tools/SchemaTool.php (+1 -0)
tests/Doctrine/Tests/Models/ValueObjects/Name.php (+9 -0)

...and 5 more files

📄 Description

This is PR #634 with the following additional changes:

  • Merged into master (fixed some conflict in Metadata classes)
  • Support for DQL queries on fields of embedded objects

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/835 **Author:** [@schmittjoh](https://github.com/schmittjoh) **Created:** 11/1/2013 **Status:** ✅ Merged **Merged:** 2/8/2014 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `ValueObjects` --- ### 📝 Commits (10+) - [`b4b9709`](https://github.com/doctrine/orm/commit/b4b9709090e2fb5919b025fa2e5a194e1013fe07) adds a new output format - [`02d34bb`](https://github.com/doctrine/orm/commit/02d34bbba6e3055b6b72918a3f08d43d4f29469e) [DDC-93] Started ValueObjectsTest - [`32988b3`](https://github.com/doctrine/orm/commit/32988b3cdf050f2531c4d4f6d85971f896cd8303) [DDC-93] Parse @Embedded and @Embeddable during SchemaTool processing to make parsing work. - [`0204a8b`](https://github.com/doctrine/orm/commit/0204a8b69a33883c83a26be108b528fac320c729) [DDC-93] Implement first working version of value objects using a ReflectionProxy object, bypassing changes to UnitOfWork, Persisters and Hydrators. - [`011776f`](https://github.com/doctrine/orm/commit/011776f02ffa279afc0016b2de76b662b87dfc95) [DDC-93] Add some TODOs in code. - [`879ab6e`](https://github.com/doctrine/orm/commit/879ab6e52b1d20565074b5abfeb995926505461a) [DDC-93] Show CRUD with value objects with current change tracking assumptions. - [`9613f1d`](https://github.com/doctrine/orm/commit/9613f1d8cb40c552ea5e57ad12b3adf0a654d167) [DDC-93] Rename ReflectionProxy to ReflectionEmbeddedProperty, Add DQL test with Object and Array Hydration. - [`38b041d`](https://github.com/doctrine/orm/commit/38b041d9091492b4d082ded5f3a58c7ce391030e) Merge remote-tracking branch 'origin/ValueObjects' - [`c67ac8a`](https://github.com/doctrine/orm/commit/c67ac8a11b56fbc37eee7a475c011548c6c63487) adds support for selecting based on embedded fields - [`30897c3`](https://github.com/doctrine/orm/commit/30897c311593a9e51200d7d5bffc8aa6bdcb81b0) adds tests for update/delete DQL queries ### 📊 Changes **25 files changed** (+759 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `UPGRADE.md` (+5 -0) 📝 `docs/en/index.rst` (+1 -0) 📝 `docs/en/toc.rst` (+1 -0) ➕ `docs/en/tutorials/embeddables.rst` (+83 -0) 📝 `doctrine-mapping.xsd` (+18 -0) 📝 `lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php` (+24 -0) 📝 `lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php` (+91 -7) 📝 `lib/Doctrine/ORM/Mapping/DefaultNamingStrategy.php` (+8 -0) 📝 `lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php` (+9 -1) 📝 `lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php` (+2 -0) 📝 `lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php` (+18 -0) 📝 `lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php` (+12 -0) ➕ `lib/Doctrine/ORM/Mapping/Embeddable.php` (+28 -0) ➕ `lib/Doctrine/ORM/Mapping/Embedded.php` (+38 -0) 📝 `lib/Doctrine/ORM/Mapping/NamingStrategy.php` (+10 -0) ➕ `lib/Doctrine/ORM/Mapping/ReflectionEmbeddedProperty.php` (+66 -0) 📝 `lib/Doctrine/ORM/Mapping/UnderscoreNamingStrategy.php` (+8 -0) 📝 `lib/Doctrine/ORM/Query/Parser.php` (+7 -1) 📝 `lib/Doctrine/ORM/Tools/SchemaTool.php` (+1 -0) ➕ `tests/Doctrine/Tests/Models/ValueObjects/Name.php` (+9 -0) _...and 5 more files_ </details> ### 📄 Description This is PR #634 with the following additional changes: - Merged into master (fixed some conflict in Metadata classes) - Support for DQL queries on fields of embedded objects --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:01:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#8773