mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #1000] [CLOSED] [DDC-3068] EntityManager::find accept array of object as id #9017
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/1000
Author: @giosh94mhz
Created: 4/4/2014
Status: ❌ Closed
Base:
master← Head:DDC-3068📝 Commits (1)
5e50d7eEntityManager::find accept array of object as id📊 Changes
4 files changed (+78 additions, -8 deletions)
View changed files
📝
lib/Doctrine/ORM/EntityManager.php(+10 -8)📝
tests/Doctrine/Tests/Models/Taxi/Car.php(+5 -0)📝
tests/Doctrine/Tests/Models/Taxi/Driver.php(+5 -0)➕
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3068Test.php(+58 -0)📄 Description
Pull Request for ticket http://www.doctrine-project.org/jira/browse/DDC-3068
Here follow the ticket description for you convenience.
According to the documentation,
EntityManager::findshould return one entity given it's primary key. When a primary key of an entity is composed of multiple associations, one (me :)) would expect that the following works, but it doesn't:The only working way I've found is the following:
I think that this second scenario is not correct, since expose implementation details.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.