[PR #633] [CLOSED] [DDC-2042] Added "targetEntity" to AssociationOverride #8481

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/633
Author: @spezifanta
Created: 3/26/2013
Status: Closed

Base: masterHead: DDC-2042


📝 Commits (1)

  • df1dbfb [DDC-2042] Added "targetEntity" to AssociationOverride

📊 Changes

11 files changed (+116 additions, -0 deletions)

View changed files

📝 lib/Doctrine/ORM/Mapping/AssociationOverride.php (+7 -0)
📝 lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php (+4 -0)
📝 lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php (+4 -0)
📝 lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php (+4 -0)
📝 lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php (+4 -0)
tests/Doctrine/Tests/Models/DDC2042/DDC2042Bar.php (+12 -0)
tests/Doctrine/Tests/Models/DDC2042/DDC2042Baz.php (+12 -0)
tests/Doctrine/Tests/Models/DDC2042/DDC2042ExampleEntityWithOverride.php (+17 -0)
tests/Doctrine/Tests/Models/DDC2042/DDC2042ExampleEntityWithoutOverride.php (+11 -0)
tests/Doctrine/Tests/Models/DDC2042/DDC2042ExampleTrait.php (+23 -0)
📝 tests/Doctrine/Tests/ORM/Mapping/AnnotationDriverTest.php (+18 -0)

📄 Description

Hey,

I needed to override "targetEntity" so I forked Doctrine and applyed it myself. Just after that I found a Ticket [DDC-2042] in your Jira so I added a unit test to and would be more than happy to see this commit get merged in to the main master (at some point ;)).

Cheers, Alex

I will stick around in the #doctrine-dev on Freenode for any questions. My nick there is "fanta".

Keep up the good work.

/**

  • @ORM\Entity
  • @ORM\Table(name="customer")
  • @ORM\AssociationOverrides({
  •  @ORM\AssociationOverride(name="products",
    
  •      targetEntity="MyNewProduct"
    
  •  )
    
  • })
    */

🔄 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/633 **Author:** [@spezifanta](https://github.com/spezifanta) **Created:** 3/26/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `DDC-2042` --- ### 📝 Commits (1) - [`df1dbfb`](https://github.com/doctrine/orm/commit/df1dbfb07a2e7b8460453ccade63ddfa32369924) [DDC-2042] Added "targetEntity" to AssociationOverride ### 📊 Changes **11 files changed** (+116 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Mapping/AssociationOverride.php` (+7 -0) 📝 `lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php` (+4 -0) 📝 `lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php` (+4 -0) 📝 `lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php` (+4 -0) 📝 `lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php` (+4 -0) ➕ `tests/Doctrine/Tests/Models/DDC2042/DDC2042Bar.php` (+12 -0) ➕ `tests/Doctrine/Tests/Models/DDC2042/DDC2042Baz.php` (+12 -0) ➕ `tests/Doctrine/Tests/Models/DDC2042/DDC2042ExampleEntityWithOverride.php` (+17 -0) ➕ `tests/Doctrine/Tests/Models/DDC2042/DDC2042ExampleEntityWithoutOverride.php` (+11 -0) ➕ `tests/Doctrine/Tests/Models/DDC2042/DDC2042ExampleTrait.php` (+23 -0) 📝 `tests/Doctrine/Tests/ORM/Mapping/AnnotationDriverTest.php` (+18 -0) </details> ### 📄 Description Hey, I needed to override "targetEntity" so I forked Doctrine and applyed it myself. Just after that I found a Ticket [DDC-2042] in your Jira so I added a unit test to and would be more than happy to see this commit get merged in to the main master (at some point ;)). Cheers, Alex I will stick around in the #doctrine-dev on Freenode for any questions. My nick there is "fanta". Keep up the good work. /** - @ORM\Entity - @ORM\Table(name="customer") - @ORM\AssociationOverrides({ - @ORM\AssociationOverride(name="products", - targetEntity="MyNewProduct" - ) - }) */ --- <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:00:07 +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#8481