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;
	}