diff --git a/lib/Doctrine/ORM/Tools/Console/Command/RunDqlCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/RunDqlCommand.php index 678b045d3..7619534f7 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/RunDqlCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/RunDqlCommand.php @@ -114,7 +114,7 @@ EOT throw new \LogicException("Option 'max-result' must contains an integer value"); } - $query->setMaxResult((int) $maxResult); + $query->setMaxResults((int) $maxResult); } $resultSet = $query->execute(array(), constant($hydrationMode));