protected function createForeignKey($key) {
		$res = "\n\t\$table->addForeignKeyConstraint('".$key->getForeignTableName()."', ".$this->outputPHP($key->getLocalColumns(), 2).", ".$this->outputPHP($key->getForeignColumns(), 2).
			", ".$this->outputPHP($key->getOptions(), 2).", '".$key->getName()."');";

		return $res;
	}
protected function createForeignKey($key) {
		$res = "\n\t\$table->addForeignKeyConstraint('".$key->getForeignTableName()."', ".$this->outputPHP($key->getLocalColumns(), 2).", ".$this->outputPHP($key->getForeignColumns(), 2).
			", ".$this->outputPHP($key->getOptions(), 2).", '".$key->getName()."');";

		return $res;
	}
protected function createForeignKey ( $ key ) { $ res = "\n\t\$table->addForeignKeyConstraint('" . $ key -> getForeignTableName ( ) . "', " . $ this -> outputPHP ( $ key -> getLocalColumns ( ) , 2 ) . ", " . $ this -> outputPHP ( $ key -> getForeignColumns ( ) , 2 ) . ", " . $ this -> outputPHP ( $ key -> getOptions ( ) , 2 ) . ", '" . $ key -> getName ( ) . "');" ; return $ res ; }
Build a foreign key.
@param  \Doctrine\DBAL\Schema\ForeignKeyConstraint $key
@return string
Build a foreign key .