\Gishiki\Database\SchemaColumnRelation

Represent a column inside a table of a relational database.

Summary

Methods
Properties
Constants
__construct()
getForeignKey()
getForeignTable()
No public properties found
No constants found
No protected methods found
$foreignTable
$foreignKey
N/A
No private methods found
No private properties found
N/A

Properties

Methods

__construct()

__construct(\Gishiki\Database\Schema\Table  $externTable, \Gishiki\Database\Schema\Column  $externColumn) 

Create a new relation to the given pprimary key.

Parameters

\Gishiki\Database\Schema\Table $externTable
\Gishiki\Database\Schema\Column $externColumn

the foreign column

Throws

\Gishiki\Database\DatabaseException

the error occurred while enstabilishing the Relation

getForeignKey()

getForeignKey() : \Gishiki\Database\Schema\Column

Get the column on the current table.

Returns

\Gishiki\Database\Schema\Column

the reference to the column

getForeignTable()

getForeignTable() : \Gishiki\Database\Schema\Table

Get the table containing the foreign key.

Returns

\Gishiki\Database\Schema\Table

the table containing the foreign key