Skip to content

Commit

Permalink
Merge pull request #69 from natewiebe13/use-class-metadata-for-associ…
Browse files Browse the repository at this point in the history
…ations

Doctrine Proxy Class Metadata
  • Loading branch information
l3pp4rd authored Jan 8, 2020
2 parents 860c2d4 + fb58ef0 commit 9012a27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ protected function assoc(EntityManager $em, $association = null)
return null;
}

$meta = get_class($association);
$meta = $em->getClassMetadata(get_class($association))->getName();
$res = ['class' => $meta, 'typ' => $this->typ($meta), 'tbl' => null, 'label' => null];

try {
Expand Down

0 comments on commit 9012a27

Please sign in to comment.