Skip to content

Commit

Permalink
Prevent deep comparison of objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandLTU committed Aug 20, 2018
1 parent 8e63c70 commit 9a47c7b
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 9a47c7b

Please sign in to comment.