1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Allow all EntityManagerInterface implementations

This is necessary if Doctrine\ORM\Decorator\EntityManagerDecorator is used.
This commit is contained in:
Christian Schmidt 2014-05-28 12:30:40 +02:00
parent da96f4938a
commit a7d072f525

View File

@ -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()
{