@@ -16,10 +16,6 @@ |
||
| 16 | 16 | |
| 17 | 17 | use Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\ServiceRepositoryCompilerPass; |
| 18 | 18 | use Doctrine\Common\Util\ClassUtils; |
| 19 | -use Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand; |
|
| 20 | -use Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand; |
|
| 21 | -use Doctrine\Bundle\DoctrineBundle\Command\Proxy\ImportDoctrineCommand; |
|
| 22 | -use Doctrine\Bundle\DoctrineBundle\Command\Proxy\RunSqlDoctrineCommand; |
|
| 23 | 19 | use Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\EntityListenerPass; |
| 24 | 20 | use Doctrine\ORM\Proxy\Autoloader; |
| 25 | 21 | use Symfony\Component\Console\Application; |
@@ -30,6 +30,9 @@ |
||
| 30 | 30 | |
| 31 | 31 | private $className; |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $className |
|
| 35 | + */ |
|
| 33 | 36 | public function __construct(EntityManagerInterface $entityManager, $className) |
| 34 | 37 | { |
| 35 | 38 | $this->entityManager = $entityManager; |
@@ -103,6 +103,9 @@ |
||
| 103 | 103 | return $this->getEntityRepository()->findOneBy($criteria); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | + /** |
|
| 107 | + * @return string |
|
| 108 | + */ |
|
| 106 | 109 | public function getClassName() |
| 107 | 110 | { |
| 108 | 111 | return $this->getEntityRepository()->getClassName(); |