1
0
mirror of synced 2025-01-09 18:47:10 +03:00

Merge pull request #1041 from c960657/entity-manager-interface

Allow all EntityManagerInterface implementations
This commit is contained in:
Marco Pivetta 2014-05-28 14:40:22 +02:00
commit 5ee286e7e0

View File

@ -21,7 +21,7 @@ namespace Doctrine\ORM\Tools\Event;
use Doctrine\Common\EventArgs; use Doctrine\Common\EventArgs;
use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Schema;
use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManagerInterface;
/** /**
* Event Args used for the Events::postGenerateSchema event. * Event Args used for the Events::postGenerateSchema event.
@ -34,7 +34,7 @@ use Doctrine\ORM\EntityManager;
class GenerateSchemaEventArgs extends EventArgs class GenerateSchemaEventArgs extends EventArgs
{ {
/** /**
* @var \Doctrine\ORM\EntityManager * @var \Doctrine\ORM\EntityManagerInterface
*/ */
private $em; private $em;
@ -44,17 +44,17 @@ class GenerateSchemaEventArgs extends EventArgs
private $schema; private $schema;
/** /**
* @param EntityManager $em * @param EntityManagerInterface $em
* @param Schema $schema * @param Schema $schema
*/ */
public function __construct(EntityManager $em, Schema $schema) public function __construct(EntityManagerInterface $em, Schema $schema)
{ {
$this->em = $em; $this->em = $em;
$this->schema = $schema; $this->schema = $schema;
} }
/** /**
* @return EntityManager * @return EntityManagerInterface
*/ */
public function getEntityManager() public function getEntityManager()
{ {