1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Add message to NonUniqueResultException

This commit is contained in:
Alfredo Costa 2015-12-01 11:43:55 -02:00 committed by Luís Cobucci
parent 2b8acb9907
commit 8952176c73
No known key found for this signature in database
GPG Key ID: EC61C5F01750ED3C

View File

@ -27,4 +27,10 @@ namespace Doctrine\ORM;
*/
class NonUniqueResultException extends UnexpectedResultException
{
const DEFAULT_MESSAGE = 'More than one result was found for query although one row or none was expected.';
public function __construct(string $message = null)
{
parent::__construct($message ?? self::DEFAULT_MESSAGE);
}
}