From 77234d6aec943ee7825331d6f184b22ecacc741d Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 13 Jan 2015 14:30:51 +0100 Subject: [PATCH] #1246 DDC-3487 - removing unused assignment --- lib/Doctrine/ORM/Persisters/ManyToManyPersister.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php b/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php index c4d495104..de995c529 100644 --- a/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php +++ b/lib/Doctrine/ORM/Persisters/ManyToManyPersister.php @@ -229,10 +229,12 @@ class ManyToManyPersister extends AbstractCollectionPersister . implode(' AND ', $onConditions) . ' WHERE ' . implode(' AND ', $whereClauses); - $stmt = $this->conn->executeQuery($sql, $params); - $hydrator = $this->em->newHydrator(Query::HYDRATE_OBJECT); + $stmt = $this->conn->executeQuery($sql, $params); - return $hydrator->hydrateAll($stmt, $rsm); + return $this + ->em + ->newHydrator(Query::HYDRATE_OBJECT) + ->hydrateAll($stmt, $rsm); } /**