public function setForeignKey($tableName, $columnName)
    {
        if ($tableName && $columnName) {
            $this->relatedTableName = $tableName;
            $this->relatedColumnName = $columnName;
        } else {
            $this->relatedTableName = "";
            $this->relatedColumnName = "";
        }
    }
public function setForeignKey($tableName, $columnName)
    {
        if ($tableName && $columnName) {
            $this->relatedTableName = $tableName;
            $this->relatedColumnName = $columnName;
        } else {
            $this->relatedTableName = "";
            $this->relatedColumnName = "";
        }
    }
public function setForeignKey ( $ tableName , $ columnName ) { if ( $ tableName && $ columnName ) { $ this -> relatedTableName = $ tableName ; $ this -> relatedColumnName = $ columnName ; } else { $ this -> relatedTableName = "" ; $ this -> relatedColumnName = "" ; } }
Set the foreign key for this column.

@param      string tableName The name of the table that is foreign.
@param      string columnName The name of the column that is foreign.

@return void
Set the foreign key for this column .