lib/Doctrine/DBAL/Schema/ForeignKeyConstraint.php
public function intersectsIndexColumns(Index $index)
    {
        foreach ($index->getColumns() as $indexColumn) {
            foreach ($this->_localColumnNames as $localColumn) {
                if (strtolower($indexColumn) === strtolower($localColumn->getName())) {
                    return true;
                }
            }
        }

        return false;
    }
public function intersectsIndexColumns(Index $index)
    {
        foreach ($index->getColumns() as $indexColumn) {
            foreach ($this->_localColumnNames as $localColumn) {
                if (strtolower($indexColumn) === strtolower($localColumn->getName())) {
                    return true;
                }
            }
        }

        return false;
    }
public function intersectsIndexColumns ( Index $ index ) { foreach ( $ index -> getColumns ( ) as $ indexColumn ) { foreach ( $ this -> _localColumnNames as $ localColumn ) { if ( strtolower ( $ indexColumn ) === strtolower ( $ localColumn -> getName ( ) ) ) { return true ; } } } return false ; }
Checks whether this foreign key constraint intersects the given index columns.

Returns `true` if at least one of this foreign key's local columns
matches one of the given index's columns, `false` otherwise.

@param Index $index The index to be checked against.

@return bool
Checks whether this foreign key constraint intersects the given index columns .