From a7d072f52506028ba2692f64af568e69a4b159af Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Wed, 28 May 2014 12:30:40 +0200 Subject: [PATCH] Allow all EntityManagerInterface implementations This is necessary if Doctrine\ORM\Decorator\EntityManagerDecorator is used. --- .../ORM/Tools/Event/GenerateSchemaEventArgs.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Event/GenerateSchemaEventArgs.php b/lib/Doctrine/ORM/Tools/Event/GenerateSchemaEventArgs.php index b8a7b20af..ed03e32d9 100644 --- a/lib/Doctrine/ORM/Tools/Event/GenerateSchemaEventArgs.php +++ b/lib/Doctrine/ORM/Tools/Event/GenerateSchemaEventArgs.php @@ -21,7 +21,7 @@ namespace Doctrine\ORM\Tools\Event; use Doctrine\Common\EventArgs; use Doctrine\DBAL\Schema\Schema; -use Doctrine\ORM\EntityManager; +use Doctrine\ORM\EntityManagerInterface; /** * Event Args used for the Events::postGenerateSchema event. @@ -34,7 +34,7 @@ use Doctrine\ORM\EntityManager; class GenerateSchemaEventArgs extends EventArgs { /** - * @var \Doctrine\ORM\EntityManager + * @var \Doctrine\ORM\EntityManagerInterface */ private $em; @@ -44,17 +44,17 @@ class GenerateSchemaEventArgs extends EventArgs private $schema; /** - * @param EntityManager $em - * @param Schema $schema + * @param EntityManagerInterface $em + * @param Schema $schema */ - public function __construct(EntityManager $em, Schema $schema) + public function __construct(EntityManagerInterface $em, Schema $schema) { $this->em = $em; $this->schema = $schema; } /** - * @return EntityManager + * @return EntityManagerInterface */ public function getEntityManager() {