public function addReference($columnName, $refTable, $refColumn,
            $onDelete = 'RESTRICT', $onUpdate = 'RESTRICT') {
        $this->addIndex($columnName);
        $this->newReferences[$columnName] = array(
            'table' => $refTable,
            'column' => $refColumn,
            'onDelete' => $onDelete,
            'onUpdate' => $onUpdate,
        );
        return $this;
    }
public function addReference($columnName, $refTable, $refColumn,
            $onDelete = 'RESTRICT', $onUpdate = 'RESTRICT') {
        $this->addIndex($columnName);
        $this->newReferences[$columnName] = array(
            'table' => $refTable,
            'column' => $refColumn,
            'onDelete' => $onDelete,
            'onUpdate' => $onUpdate,
        );
        return $this;
    }
public function addReference ( $ columnName , $ refTable , $ refColumn , $ onDelete = 'RESTRICT' , $ onUpdate = 'RESTRICT' ) { $ this -> addIndex ( $ columnName ) ; $ this -> newReferences [ $ columnName ] = array ( 'table' => $ refTable , 'column' => $ refColumn , 'onDelete' => $ onDelete , 'onUpdate' => $ onUpdate , ) ; return $ this ; }
Add reference to a column
@param string $columnName
@param string $refTable
@param string $refColumn
@return Table
Add reference to a column