diff --git a/Doctrine/Type/NativeDateIntervalType.php b/Doctrine/Type/NativeDateIntervalType.php index 12e8b789b..bc4938e97 100644 --- a/Doctrine/Type/NativeDateIntervalType.php +++ b/Doctrine/Type/NativeDateIntervalType.php @@ -74,13 +74,15 @@ class NativeDateIntervalType extends DateIntervalType if (is_numeric($current)) { $next = \next($strings); switch($next) { - case 'year': + case 'year': + case 'years': $unit = 'Y'; break; case 'mon': case 'mons': $unit = 'M'; break; + case 'day': case 'days': $unit = 'D'; break;