[PR #155] [CLOSED] One-to-one relations and field used as association key #7787

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/155
Author: @goetas
Created: 10/18/2011
Status: Closed

Base: masterHead: association-key


📝 Commits (2)

  • 7c7e4d7 right field population in one-to-one relations, if the field is used
  • b280e0b Wrong field name for association-key IDs in XML mapping.

📊 Changes

2 files changed (+12 additions, -9 deletions)

View changed files

📝 lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php (+1 -1)
📝 lib/Doctrine/ORM/Persisters/BasicEntityPersister.php (+11 -8)

📄 Description

Right field population in one-to-one relations, if the field is used as association key.

If the associated entity has an association key, we cant use fieldNames metadata, but we have to use associationMappings metadata to identify the needed object.


🔄 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/155 **Author:** [@goetas](https://github.com/goetas) **Created:** 10/18/2011 **Status:** ❌ Closed **Base:** `master` ← **Head:** `association-key` --- ### 📝 Commits (2) - [`7c7e4d7`](https://github.com/doctrine/orm/commit/7c7e4d7f25da96437048d3243387fd44de4946b7) right field population in one-to-one relations, if the field is used - [`b280e0b`](https://github.com/doctrine/orm/commit/b280e0bfbbf7e71328434eb4f9016a99c1e7a3d6) Wrong field name for association-key IDs in XML mapping. ### 📊 Changes **2 files changed** (+12 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php` (+1 -1) 📝 `lib/Doctrine/ORM/Persisters/BasicEntityPersister.php` (+11 -8) </details> ### 📄 Description Right field population in one-to-one relations, if the field is used as association key. If the associated entity has an association key, we cant use fieldNames metadata, but we have to use associationMappings metadata to identify the needed object. --- <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:56:51 +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#7787