diff --git a/lib/Doctrine/ORM/Query/ResultSetMapping.php b/lib/Doctrine/ORM/Query/ResultSetMapping.php index 68713a7cc..239f79c9e 100644 --- a/lib/Doctrine/ORM/Query/ResultSetMapping.php +++ b/lib/Doctrine/ORM/Query/ResultSetMapping.php @@ -176,8 +176,6 @@ class ResultSetMapping break; } - return $this; - /* TODO: check if this exception can be put back, for now it's gone because of assumptions made by some ORM internals if ( ! $found) { $message = sprintf( @@ -189,6 +187,8 @@ class ResultSetMapping throw new \LogicException($message); } */ + + return $this; } /**