mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #385] [CLOSED] set metadata for interface to be able to fetch entites by interface name #8114
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/385
Author: @Burgov
Created: 6/29/2012
Status: ❌ Closed
Base:
master← Head:set_metadata_for_resolved_interface📝 Commits (5)
9c7f3f2set metadata for interface to be able to fetch entites by interface namedcf1655added failing test8a111beAdded new event to allow actions to be done before trying to load class metadata04381f7Rebased and renamed PreLoadClassMetadata to OnClassMetadataNotFound61f5a27added use statement📊 Changes
4 files changed (+115 additions, -6 deletions)
View changed files
➕
lib/Doctrine/ORM/Event/OnClassMetadataNotFoundEventArgs.php(+75 -0)📝
lib/Doctrine/ORM/Events.php(+7 -0)📝
lib/Doctrine/ORM/Tools/ResolveTargetEntityListener.php(+24 -1)📝
tests/Doctrine/Tests/ORM/Tools/ResolveTargetEntityListenerTest.php(+9 -5)📄 Description
using the new ResolveTargetEntity functionality we noticed we needed another feature:
From the Symfony Bundle defining the interface, we'd like to be able to fetch entities by this very interface name, e.g.:
or
This PR sets metadata for the interface when metadata for a class is loaded that the interface is configured for
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.