From 97d1d5343e254ee946fd7a7ae6de858c96d3e92f Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 13 Jan 2015 14:46:34 +0100 Subject: [PATCH] #1246 DDC-3487 - removed unused assignment, making `$association` variable overwrite more obvious --- lib/Doctrine/ORM/Persisters/ManyToManyPersister.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php b/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php index 17c98b90b..746a350ac 100644 --- a/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php +++ b/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php @@ -306,8 +306,10 @@ class ManyToManyPersister extends AbstractCollectionPersister $association = $mapping; if ( ! $mapping['isOwningSide']) { - $class = $this->em->getClassMetadata($mapping['targetEntity']); - $association = $class->associationMappings[$mapping['mappedBy']]; + $association = $this + ->em + ->getClassMetadata($mapping['targetEntity']) + ->associationMappings[$mapping['mappedBy']]; } $targetClass = $this->em->getClassMetadata($mapping['targetEntity']);