Skip to content

Commit

Permalink
Merge pull request #193 from ip512/master
Browse files Browse the repository at this point in the history
Change EntityManager to EntityManagerInterface
  • Loading branch information
ddeboer committed Apr 29, 2015
2 parents cbae2f5 + a01d235 commit 45069d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"symfony/property-access": "*",
"phpoffice/phpexcel": "*",
"doctrine/dbal": "*",
"doctrine/orm": "*",
"doctrine/orm": "~2.4",
"symfony/console": "~2.5.0",
"symfony/validator": "~2.3.0"
},
Expand Down
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 45069d8

Please sign in to comment.