Skip to content

Commit

Permalink
Change EntityManager to EntityManagerInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
ip512 committed Apr 28, 2015
1 parent cbae2f5 commit 2292ef2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Ddeboer/DataImport/Writer/DoctrineWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace Ddeboer\DataImport\Writer;

use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Mapping\ClassMetadata;

/**
Expand All @@ -18,7 +19,7 @@ class DoctrineWriter extends AbstractWriter
/**
* Doctrine entity manager
*
* @var EntityManager
* @var EntityManagerInterface
*/
protected $entityManager;

Expand Down Expand Up @@ -79,11 +80,11 @@ class DoctrineWriter extends AbstractWriter
/**
* Constructor
*
* @param EntityManager $entityManager
* @param string $entityName
* @param string|array $index Field or fields to find current entities by
* @param EntityManagerInterface $entityManager
* @param string $entityName
* @param string|array $index Field or fields to find current entities by
*/
public function __construct(EntityManager $entityManager, $entityName, $index = null)
public function __construct(EntityManagerInterface $entityManager, $entityName, $index = null)
{
$this->entityManager = $entityManager;
$this->entityName = $entityName;
Expand Down

0 comments on commit 2292ef2

Please sign in to comment.