protected function getSQLResultFromConnection($connection, $sql, array $params = array())
    {
        $result = $connection->fetchAll($sql, $params);
        return $result;
    }
protected function getSQLResultFromConnection($connection, $sql, array $params = array())
    {
        $result = $connection->fetchAll($sql, $params);
        return $result;
    }
protected function getSQLResultFromConnection ( $ connection , $ sql , array $ params = array ( ) ) { $ result = $ connection -> fetchAll ( $ sql , $ params ) ; return $ result ; }
Permite ejecutar una consulta de tipo SELECT

@param \Doctrine\DBAL\Connection $connection
@param string $sql
@return array
Permite ejecutar una consulta de tipo SELECT