This commit is contained in:
parent
6debf2c909
commit
662b49608c
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,7 @@ class ResolveTargetEntityListener implements EventSubscriber
|
||||||
if (array_key_exists($args->getClassName(), $this->resolveTargetEntities)) {
|
if (array_key_exists($args->getClassName(), $this->resolveTargetEntities)) {
|
||||||
$args->setFoundMetadata(
|
$args->setFoundMetadata(
|
||||||
$args
|
$args
|
||||||
->getEntityManager()
|
->getObjectManager()
|
||||||
->getClassMetadata($this->resolveTargetEntities[$args->getClassname()]['targetEntity'])
|
->getClassMetadata($this->resolveTargetEntities[$args->getClassname()]['targetEntity'])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -96,6 +96,7 @@ class ResolveTargetEntityListener implements EventSubscriber
|
||||||
*/
|
*/
|
||||||
public function loadClassMetadata(LoadClassMetadataEventArgs $args)
|
public function loadClassMetadata(LoadClassMetadataEventArgs $args)
|
||||||
{
|
{
|
||||||
|
/* @var $cm \Doctrine\ORM\Mapping\ClassMetadata */
|
||||||
$cm = $args->getClassMetadata();
|
$cm = $args->getClassMetadata();
|
||||||
|
|
||||||
foreach ($cm->associationMappings as $mapping) {
|
foreach ($cm->associationMappings as $mapping) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue