. */ namespace Doctrine\ORM\Tools\Console\Helper; use Symfony\Components\Console\Helper\Helper, Doctrine\ORM\EntityManager; /** * Doctrine CLI Connection Helper. * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.org * @since 2.0 * @version $Revision$ * @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 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'; } }