Skip to content

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

@doctrinebot

Description

@doctrinebot

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions