Skip to content

Commit

Permalink
Merge pull request #3 from nfq-eta/prevent-deep-comparison
Browse files Browse the repository at this point in the history
Prevent deep comparison of objects.
  • Loading branch information
pamil authored Aug 22, 2018
2 parents 8e63c70 + 9a47c7b commit 0a2a1ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AssociationHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public function hydrateAssociation($subjects, string $associationPath): void
$classMetadata = $this->entityManager->getClassMetadata($classMetadata->getAssociationTargetClass($initialAssociation));
}

$subjects = array_map([$this->entityManager->getUnitOfWork(), 'getEntityIdentifier'], $subjects);

$this->entityManager->createQueryBuilder()
->select('PARTIAL subject.{id}')
->addSelect('associations')
Expand Down

0 comments on commit 0a2a1ab

Please sign in to comment.