public static function get(Connection $conn) { /** @var $instance \Doctrine\DBAL\Connection */ $instance = $conn->getInstance(); return DoctrineEntityManager::create($instance, $instance->getConfiguration(), $instance->getEventManager()); }
/** * @static * @param ModuleConnection $conn * @return DBALConnection */ public static function get(ModuleConnection $connection) { return $connection->getInstance(); }