lib/Doctrine/DBAL/Schema/Table.php
public function getForeignKey($constraintName)
    {
        $constraintName = $this->normalizeIdentifier($constraintName);
        if (! $this->hasForeignKey($constraintName)) {
            throw SchemaException::foreignKeyDoesNotExist($constraintName, $this->_name);
        }

        return $this->_fkConstraints[$constraintName];
    }
public function getForeignKey($constraintName)
    {
        $constraintName = $this->normalizeIdentifier($constraintName);
        if (! $this->hasForeignKey($constraintName)) {
            throw SchemaException::foreignKeyDoesNotExist($constraintName, $this->_name);
        }

        return $this->_fkConstraints[$constraintName];
    }
public function getForeignKey ( $ constraintName ) { $ constraintName = $ this -> normalizeIdentifier ( $ constraintName ) ; if ( ! $ this -> hasForeignKey ( $ constraintName ) ) { throw SchemaException :: foreignKeyDoesNotExist ( $ constraintName , $ this -> _name ) ; } return $ this -> _fkConstraints [ $ constraintName ] ; }
Returns the foreign key constraint with the given name.

@param string $constraintName The constraint name.

@return ForeignKeyConstraint

@throws SchemaException If the foreign key does not exist.
Returns the foreign key constraint with the given name .