Merge pull request #927 from timdev/timdev-fixes
s/EntityManager/EntityManagerInterface/ in a few places
This commit is contained in:
commit
105d9e998b
@ -19,8 +19,9 @@
|
|||||||
|
|
||||||
namespace Doctrine\ORM\Tools\Console\Helper;
|
namespace Doctrine\ORM\Tools\Console\Helper;
|
||||||
|
|
||||||
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Component\Console\Helper\Helper;
|
use Symfony\Component\Console\Helper\Helper;
|
||||||
use Doctrine\ORM\EntityManager;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Doctrine CLI Connection Helper.
|
* Doctrine CLI Connection Helper.
|
||||||
@ -35,18 +36,18 @@ use Doctrine\ORM\EntityManager;
|
|||||||
class EntityManagerHelper extends Helper
|
class EntityManagerHelper extends Helper
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Doctrine ORM EntityManager.
|
* Doctrine ORM EntityManagerInterface.
|
||||||
*
|
*
|
||||||
* @var EntityManager
|
* @var EntityManagerInterface
|
||||||
*/
|
*/
|
||||||
protected $_em;
|
protected $_em;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param \Doctrine\ORM\EntityManager $em
|
* @param EntityManagerInterface $em
|
||||||
*/
|
*/
|
||||||
public function __construct(EntityManager $em)
|
public function __construct(EntityManagerInterface $em)
|
||||||
{
|
{
|
||||||
$this->_em = $em;
|
$this->_em = $em;
|
||||||
}
|
}
|
||||||
@ -54,7 +55,7 @@ class EntityManagerHelper extends Helper
|
|||||||
/**
|
/**
|
||||||
* Retrieves Doctrine ORM EntityManager.
|
* Retrieves Doctrine ORM EntityManager.
|
||||||
*
|
*
|
||||||
* @return EntityManager
|
* @return EntityManagerInterface
|
||||||
*/
|
*/
|
||||||
public function getEntityManager()
|
public function getEntityManager()
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,7 @@ use Doctrine\DBAL\Schema\Schema;
|
|||||||
use Doctrine\DBAL\Schema\Table;
|
use Doctrine\DBAL\Schema\Table;
|
||||||
use Doctrine\DBAL\Schema\Visitor\DropSchemaSqlCollector;
|
use Doctrine\DBAL\Schema\Visitor\DropSchemaSqlCollector;
|
||||||
use Doctrine\DBAL\Schema\Visitor\RemoveNamespacedAssets;
|
use Doctrine\DBAL\Schema\Visitor\RemoveNamespacedAssets;
|
||||||
use Doctrine\ORM\EntityManager;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\Mapping\ClassMetadata;
|
use Doctrine\ORM\Mapping\ClassMetadata;
|
||||||
use Doctrine\ORM\Internal\CommitOrderCalculator;
|
use Doctrine\ORM\Internal\CommitOrderCalculator;
|
||||||
use Doctrine\ORM\Tools\Event\GenerateSchemaTableEventArgs;
|
use Doctrine\ORM\Tools\Event\GenerateSchemaTableEventArgs;
|
||||||
@ -47,7 +47,7 @@ use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs;
|
|||||||
class SchemaTool
|
class SchemaTool
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \Doctrine\ORM\EntityManager
|
* @var \Doctrine\ORM\EntityManagerInterface
|
||||||
*/
|
*/
|
||||||
private $em;
|
private $em;
|
||||||
|
|
||||||
@ -67,9 +67,9 @@ class SchemaTool
|
|||||||
* Initializes a new SchemaTool instance that uses the connection of the
|
* Initializes a new SchemaTool instance that uses the connection of the
|
||||||
* provided EntityManager.
|
* provided EntityManager.
|
||||||
*
|
*
|
||||||
* @param \Doctrine\ORM\EntityManager $em
|
* @param \Doctrine\ORM\EntityManagerInterface $em
|
||||||
*/
|
*/
|
||||||
public function __construct(EntityManager $em)
|
public function __construct(EntityManagerInterface $em)
|
||||||
{
|
{
|
||||||
$this->em = $em;
|
$this->em = $em;
|
||||||
$this->platform = $em->getConnection()->getDatabasePlatform();
|
$this->platform = $em->getConnection()->getDatabasePlatform();
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
namespace Doctrine\ORM\Tools;
|
namespace Doctrine\ORM\Tools;
|
||||||
|
|
||||||
use Doctrine\ORM\EntityManager;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\Mapping\ClassMetadataInfo;
|
use Doctrine\ORM\Mapping\ClassMetadataInfo;
|
||||||
use Doctrine\DBAL\Types\Type;
|
use Doctrine\DBAL\Types\Type;
|
||||||
|
|
||||||
@ -37,14 +37,14 @@ use Doctrine\DBAL\Types\Type;
|
|||||||
class SchemaValidator
|
class SchemaValidator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var EntityManager
|
* @var EntityManagerInterface
|
||||||
*/
|
*/
|
||||||
private $em;
|
private $em;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param EntityManager $em
|
* @param EntityManagerInterface $em
|
||||||
*/
|
*/
|
||||||
public function __construct(EntityManager $em)
|
public function __construct(EntityManagerInterface $em)
|
||||||
{
|
{
|
||||||
$this->em = $em;
|
$this->em = $em;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user