lib/Doctrine/DBAL/Connection.php
public function fetchAssoc($statement, array $params = [], array $types = [])
    {
        return $this->executeQuery($statement, $params, $types)->fetch(FetchMode::ASSOCIATIVE);
    }
public function fetchAssoc($statement, array $params = [], array $types = [])
    {
        return $this->executeQuery($statement, $params, $types)->fetch(FetchMode::ASSOCIATIVE);
    }
public function fetchAssoc ( $ statement , array $ params = [ ] , array $ types = [ ] ) { return $ this -> executeQuery ( $ statement , $ params , $ types ) -> fetch ( FetchMode :: ASSOCIATIVE ) ; }
Prepares and executes an SQL query and returns the first row of the result
as an associative array.

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

@return mixed[]|false False is returned if no rows are found.

@throws DBALException
Prepares and executes an SQL query and returns the first row of the result as an associative array .