lib/Doctrine/DBAL/Schema/Table.php
public function columnsAreIndexed(array $columnNames)
    {
        foreach ($this->getIndexes() as $index) {
            /** @var $index Index */
            if ($index->spansColumns($columnNames)) {
                return true;
            }
        }

        return false;
    }
public function columnsAreIndexed(array $columnNames)
    {
        foreach ($this->getIndexes() as $index) {
            /** @var $index Index */
            if ($index->spansColumns($columnNames)) {
                return true;
            }
        }

        return false;
    }
public function columnsAreIndexed ( array $ columnNames ) { foreach ( $ this -> getIndexes ( ) as $ index ) { /** @var $index Index */ if ( $ index -> spansColumns ( $ columnNames ) ) { return true ; } } return false ; }
Checks if an index begins in the order of the given columns.

@param string[] $columnNames

@return bool
Checks if an index begins in the order of the given columns .