lib/Doctrine/DBAL/Schema/Table.php
public function getIndex($indexName)
    {
        $indexName = $this->normalizeIdentifier($indexName);
        if (! $this->hasIndex($indexName)) {
            throw SchemaException::indexDoesNotExist($indexName, $this->_name);
        }

        return $this->_indexes[$indexName];
    }
public function getIndex($indexName)
    {
        $indexName = $this->normalizeIdentifier($indexName);
        if (! $this->hasIndex($indexName)) {
            throw SchemaException::indexDoesNotExist($indexName, $this->_name);
        }

        return $this->_indexes[$indexName];
    }
public function getIndex ( $ indexName ) { $ indexName = $ this -> normalizeIdentifier ( $ indexName ) ; if ( ! $ this -> hasIndex ( $ indexName ) ) { throw SchemaException :: indexDoesNotExist ( $ indexName , $ this -> _name ) ; } return $ this -> _indexes [ $ indexName ] ; }
Returns the Index with the given name.

@param string $indexName The index name.

@return Index

@throws SchemaException If the index does not exist.
Returns the Index with the given name .