. */ namespace Doctrine\ORM\Tools\Console\Helper; use Symfony\Component\Console\Helper\Helper, Doctrine\ORM\EntityManager; /** * Doctrine CLI Connection Helper. * * * @link www.doctrine-project.org * @since 2.0 * @author Benjamin Eberlei * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class EntityManagerHelper extends Helper { /** * Doctrine ORM EntityManager * @var EntityManager */ protected $_em; /** * Constructor * * @param \Doctrine\DBAL\Connection $connection Doctrine Database Connection */ public function __construct(EntityManager $em) { $this->_em = $em; } /** * Retrieves Doctrine ORM EntityManager * * @return EntityManager */ public function getEntityManager() { return $this->_em; } /** * @see Helper */ public function getName() { return 'entityManager'; } }