Exception with Doctrine2 and HYDRATE_SIMPLEOBJECT
问题 As a good practice i'm tring to hydrate an object as small as possible since data is going to be read only (just show the entity in my Twig template). So i've tried HYDRATE_SIMPLEOBJECT hydratation mode but i'm getting this exception: Cannot use SimpleObjectHydrator with a ResultSetMapping that contains more than one object result. How should i interpret this message? By the way, here is the code that throws the exception: protected function getFindAllQueryBuilder() { return $this-