1 | <?php |
||
25 | abstract class DoctrineCommand extends Command |
||
26 | { |
||
27 | /** |
||
28 | * get a doctrine entity generator |
||
29 | * |
||
30 | * @return EntityGenerator |
||
31 | */ |
||
32 | protected function getEntityGenerator() |
||
44 | |||
45 | /** |
||
46 | * Get a doctrine entity manager by symfony name. |
||
47 | * |
||
48 | * @param string $name |
||
49 | * |
||
50 | * @return \Doctrine\ORM\EntityManager |
||
51 | */ |
||
52 | protected function getEntityManager($name) |
||
58 | |||
59 | /** |
||
60 | * Get a doctrine dbal connection by symfony name. |
||
61 | * |
||
62 | * @param string $name |
||
63 | * |
||
64 | * @return \Doctrine\DBAL\Connection |
||
65 | */ |
||
66 | protected function getDoctrineConnection($name) |
||
72 | } |
||
73 |