Skip to content

Commit

Permalink
Merge pull request doctrine#811 from flip111/patch-6
Browse files Browse the repository at this point in the history
Update SingleScalarHydrator error message
  • Loading branch information
guilhermeblanco committed Oct 2, 2013
2 parents fc53bc8 + 62ae8dc commit 3f883d5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -44,7 +44,7 @@ protected function hydrateAllData()
}

if ($numRows > 1 || count($data[key($data)]) > 1) {
throw new NonUniqueResultException();
throw new NonUniqueResultException('The query returned multiple rows. Change the query or use a different result function like getScalarResult().');
}

$cache = array();
Expand Down

0 comments on commit 3f883d5

Please sign in to comment.