package Default

 Methods

Constructor

__construct(string $column) 

Parameters

$column

string

Get column name

getColumnName() : string

Returns

string

get foreign key delete rule

getForeignKeyDeleteRule() : string

Returns

string

Get foreign key update rule

getForeignKeyUpdateRule() : string

Returns

string

Get ordinal position

getOrdinalPosition() : integer

Returns

integer

Get position in unique constraint

getPositionInUniqueConstraint() : boolean

Returns

boolean

Get referenced column name

getReferencedColumnName() : string

Returns

string

Get referenced table name

getReferencedTableName() : string

Returns

string

Get referencred table schema

getReferencedTableSchema() : string

Returns

string

Set column name

setColumnName(string $columnName) : \Zend\Db\Metadata\Object\ConstraintKeyObject

Parameters

$columnName

string

Returns

\Zend\Db\Metadata\Object\ConstraintKeyObject

Set foreign key delete rule

setForeignKeyDeleteRule(string $foreignKeyDeleteRule) 

Parameters

$foreignKeyDeleteRule

string

set foreign key update rule

setForeignKeyUpdateRule(string $foreignKeyUpdateRule) 

Parameters

$foreignKeyUpdateRule

string

Set ordinal position

setOrdinalPosition(integer $ordinalPosition) : \Zend\Db\Metadata\Object\ConstraintKeyObject

Parameters

$ordinalPosition

integer

Returns

\Zend\Db\Metadata\Object\ConstraintKeyObject

Set position in unique constraint

setPositionInUniqueConstraint(boolean $positionInUniqueConstraint) : \Zend\Db\Metadata\Object\ConstraintKeyObject

Parameters

$positionInUniqueConstraint

boolean

Returns

\Zend\Db\Metadata\Object\ConstraintKeyObject

Set referenced column name

setReferencedColumnName(string $referencedColumnName) : \Zend\Db\Metadata\Object\ConstraintKeyObject

Parameters

$referencedColumnName

string

Returns

\Zend\Db\Metadata\Object\ConstraintKeyObject

Set Referenced table name

setReferencedTableName(string $referencedTableName) : \Zend\Db\Metadata\Object\ConstraintKeyObject

Parameters

$referencedTableName

string

Returns

\Zend\Db\Metadata\Object\ConstraintKeyObject

Set referenced table schema

setReferencedTableSchema(string $referencedTableSchema) : \Zend\Db\Metadata\Object\ConstraintKeyObject

Parameters

$referencedTableSchema

string

Returns

\Zend\Db\Metadata\Object\ConstraintKeyObject

 Properties

 

$columnName

$columnName : string

Default

null
 

$foreignKeyDeleteRule

$foreignKeyDeleteRule : string

Default

null
 

$foreignKeyUpdateRule

$foreignKeyUpdateRule : string

Default

null
 

$ordinalPosition

$ordinalPosition : integer

Default

null
 

$positionInUniqueConstraint

$positionInUniqueConstraint : boolean

Default

null
 

$referencedColumnName

$referencedColumnName : string

Default

null
 

$referencedTableName

$referencedTableName : string

Default

null
 

$referencedTableSchema

$referencedTableSchema : string

Default

null

 Constants

 

FK_CASCADE

FK_CASCADE = 'CASCADE' 
 

FK_NO_ACTION

FK_NO_ACTION = 'NO ACTION' 
 

FK_RESTRICT

FK_RESTRICT = 'RESTRICT' 
 

FK_SET_DEFAULT

FK_SET_DEFAULT = 'SET DEFAULT' 
 

FK_SET_NULL

FK_SET_NULL = 'SET NULL'