mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1112] DefaultRepositoryFactory: single repository for aliased entities #9169
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?
Original Pull Request: https://github.com/doctrine/orm/pull/1112
State: closed
Merged: Yes
The actual implementation of
DefaultRepositoryFactorycreate multiple instances for a single entity if is accessed by multiple namespace aliases.I've patched
DefaultRepositoryFactory::getRepositoryso that aliases are resolved before saving the reference into therepositoryList.Just to not affect performance of existing implementation, I've added to therepositoryListboth the aliased class name and the fully-qualified class name, but only the latter is required.