From d8fcdc0c547df9c5ab091f21aade3cdc1ae3a963 Mon Sep 17 00:00:00 2001 From: amakhov Date: Tue, 6 Aug 2013 12:40:30 +0400 Subject: [PATCH] Add hour to DATE_ADD and DATE_SUB. Excepcion message fix --- lib/Doctrine/ORM/Query/AST/Functions/DateSubFunction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Query/AST/Functions/DateSubFunction.php b/lib/Doctrine/ORM/Query/AST/Functions/DateSubFunction.php index bcd994ba9..d0e890fa7 100644 --- a/lib/Doctrine/ORM/Query/AST/Functions/DateSubFunction.php +++ b/lib/Doctrine/ORM/Query/AST/Functions/DateSubFunction.php @@ -58,7 +58,7 @@ class DateSubFunction extends DateAddFunction default: throw QueryException::semanticalError( - 'DATE_SUB() only supports units of type day and month.' + 'DATE_SUB() only supports units of type hour, day and month.' ); } }