. */ namespace Doctrine\ORM\Tools\Console\Helper; use Symfony\Component\Console\Helper\Helper; use 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\ORM\EntityManager $em */ public function __construct(EntityManager $em) { $this->_em = $em; } /** * Retrieves Doctrine ORM EntityManager. * * @return EntityManager */ public function getEntityManager() { return $this->_em; } /** * {@inheritdoc} */ public function getName() { return 'entityManager'; } }