[PR #537] [MERGED] fixed problems with joined inheritance and composite keys #8338

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/537
Author: @Powerhamster
Created: 12/16/2012
Status: Merged
Merged: 5/4/2013
Merged by: @beberlei

Base: masterHead: joined-composite-keys


📝 Commits (2)

  • fb055ca fixed problems with joined inheritance and composite keys
  • 86c33d7 inheritance with composite keys

📊 Changes

9 files changed (+348 additions, -35 deletions)

View changed files

📝 lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php (+4 -1)
📝 lib/Doctrine/ORM/Tools/SchemaTool.php (+111 -34)
tests/Doctrine/Tests/Models/CompositeKeyInheritance/JoinedChildClass.php (+21 -0)
tests/Doctrine/Tests/Models/CompositeKeyInheritance/JoinedRootClass.php (+25 -0)
tests/Doctrine/Tests/Models/CompositeKeyInheritance/SingleChildClass.php (+21 -0)
tests/Doctrine/Tests/Models/CompositeKeyInheritance/SingleRootClass.php (+25 -0)
tests/Doctrine/Tests/ORM/Functional/JoinedTableCompositeKeyTest.php (+64 -0)
tests/Doctrine/Tests/ORM/Functional/SingleTableCompositeKeyTest.php (+64 -0)
📝 tests/Doctrine/Tests/OrmFunctionalTestCase.php (+13 -0)

📄 Description

SchemaTool now creates all Id columns not just only the first one.
Insert statement for child entity now contains parameter for additional key columns only once.


🔄 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/537 **Author:** [@Powerhamster](https://github.com/Powerhamster) **Created:** 12/16/2012 **Status:** ✅ Merged **Merged:** 5/4/2013 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `joined-composite-keys` --- ### 📝 Commits (2) - [`fb055ca`](https://github.com/doctrine/orm/commit/fb055ca75d3ee4f126f17869cc6cb645d3bb5cd2) fixed problems with joined inheritance and composite keys - [`86c33d7`](https://github.com/doctrine/orm/commit/86c33d78d08afa3ed0b759884e09d497878094e5) inheritance with composite keys ### 📊 Changes **9 files changed** (+348 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php` (+4 -1) 📝 `lib/Doctrine/ORM/Tools/SchemaTool.php` (+111 -34) ➕ `tests/Doctrine/Tests/Models/CompositeKeyInheritance/JoinedChildClass.php` (+21 -0) ➕ `tests/Doctrine/Tests/Models/CompositeKeyInheritance/JoinedRootClass.php` (+25 -0) ➕ `tests/Doctrine/Tests/Models/CompositeKeyInheritance/SingleChildClass.php` (+21 -0) ➕ `tests/Doctrine/Tests/Models/CompositeKeyInheritance/SingleRootClass.php` (+25 -0) ➕ `tests/Doctrine/Tests/ORM/Functional/JoinedTableCompositeKeyTest.php` (+64 -0) ➕ `tests/Doctrine/Tests/ORM/Functional/SingleTableCompositeKeyTest.php` (+64 -0) 📝 `tests/Doctrine/Tests/OrmFunctionalTestCase.php` (+13 -0) </details> ### 📄 Description SchemaTool now creates all Id columns not just only the first one. Insert statement for child entity now contains parameter for additional key columns only once. --- <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 15:59:28 +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#8338