Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDC-1899: [GH-385] set metadata for interface to be able to fetch entites by interface name #2564

Closed
doctrinebot opened this issue Jun 29, 2012 · 1 comment
Assignees

Comments

@doctrinebot
Copy link

Jira issue originally created by user @beberlei:

This issue is created automatically through a Github pull request on behalf of Burgov:

Url: #385

Message:

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.:

$em->find('Foo\BarBundle\Entity\PersonInterface', 1);

or

$em->getRepository('Foo\BarBundle\Entity\PersonInterface')->findAll();

This PR sets metadata for the interface when metadata for a class is loaded that the interface is configured for

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-385] was closed:
doctrine/dbal#385

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants