From 1fe6dbc1f24e40a1c76d00de3f5114bd41ad561a Mon Sep 17 00:00:00 2001 From: Alexandru Patranescu Date: Sun, 23 Feb 2014 20:01:14 +0200 Subject: [PATCH] allow passing EntityManagerInterface when creating a HelperSet --- lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php b/lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php index 365fcb415..7e88615aa 100644 --- a/lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php +++ b/lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php @@ -22,7 +22,7 @@ namespace Doctrine\ORM\Tools\Console; use Symfony\Component\Console\Application; use Symfony\Component\Console\Helper\HelperSet; use Doctrine\ORM\Version; -use Doctrine\ORM\EntityManager; +use Doctrine\ORM\EntityManagerInterface; use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper; use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper; @@ -35,10 +35,10 @@ class ConsoleRunner /** * Create a Symfony Console HelperSet * - * @param EntityManager $entityManager + * @param EntityManagerInterface $entityManager * @return HelperSet */ - public static function createHelperSet(EntityManager $entityManager) + public static function createHelperSet(EntityManagerInterface $entityManager) { return new HelperSet(array( 'db' => new ConnectionHelper($entityManager->getConnection()),