mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #155] [CLOSED] One-to-one relations and field used as association key #7787
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/155
Author: @goetas
Created: 10/18/2011
Status: ❌ Closed
Base:
master← Head:association-key📝 Commits (2)
7c7e4d7right field population in one-to-one relations, if the field is usedb280e0bWrong 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.