public function getForeignKey($name)
    {
        if (!$this->hasForeignKey($name)) {
            throw SchemaException::tableForeignKeyDoesNotExist($this->getName(), $name);
        }

        return $this->foreignKeys[$name];
    }
public function getForeignKey($name)
    {
        if (!$this->hasForeignKey($name)) {
            throw SchemaException::tableForeignKeyDoesNotExist($this->getName(), $name);
        }

        return $this->foreignKeys[$name];
    }
public function getForeignKey ( $ name ) { if ( ! $ this -> hasForeignKey ( $ name ) ) { throw SchemaException :: tableForeignKeyDoesNotExist ( $ this -> getName ( ) , $ name ) ; } return $ this -> foreignKeys [ $ name ] ; }
Gets a foreign key

@param string $name The foreign key name.

@throws \Fridge\DBAL\Exception\SchemaException If the foreign key does not exist.

@return \Fridge\DBAL\Schema\ForeignKey The foreign key.
Gets a foreign key