lib/Doctrine/DBAL/Connection.php
public function fetchAll($sql, array $params = [], $types = [])
    {
        return $this->executeQuery($sql, $params, $types)->fetchAll();
    }
public function fetchAll($sql, array $params = [], $types = [])
    {
        return $this->executeQuery($sql, $params, $types)->fetchAll();
    }
public function fetchAll ( $ sql , array $ params = [ ] , $ types = [ ] ) { return $ this -> executeQuery ( $ sql , $ params , $ types ) -> fetchAll ( ) ; }
Prepares and executes an SQL query and returns the result as an associative array.

@param string         $sql    The SQL query.
@param mixed[]        $params The query parameters.
@param int[]|string[] $types  The query parameter types.

@return mixed[]
Prepares and executes an SQL query and returns the result as an associative array .