package Default
inherited_from \Zend\Db\Sql\Ddl\Constraint\AbstractConstraint

 Methods

__construct()

__construct(null|string $name, null|string|array $columns, string $referenceTable, null|string|array $referenceColumn, null|string $onDeleteRule = null, null|string $onUpdateRule = null
inherited_from \Zend\Db\Sql\Ddl\Constraint\AbstractConstraint::__construct()

Parameters

$name

nullstring

$columns

nullstringarray

$referenceTable

string

$referenceColumn

nullstringarray

$onDeleteRule

nullstring

$onUpdateRule

nullstring

__construct()

__construct(null|string|array $columns = null, null|string $name = null
Inherited

Parameters

$columns

nullstringarray

$name

nullstring

addColumn()

addColumn(string $column) : \Zend\Db\Sql\Ddl\Constraint\ForeignKey
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$column

string

Returns

\Zend\Db\Sql\Ddl\Constraint\ForeignKey

getColumns()

getColumns() 
Inherited
inherited_from \Zend\Db\Sql\Ddl\Constraint\ConstraintInterface::getColumns()

{@inheritDoc}

getExpressionData() : array
inherited_from \Zend\Db\Sql\Ddl\Constraint\AbstractConstraint::getExpressionData()

Returns

array

{@inheritDoc}

getExpressionData() 
Inherited

getName()

getName() : string
Inherited

Returns

string

getOnDeleteRule()

getOnDeleteRule() : string

Returns

string

getOnUpdateRule()

getOnUpdateRule() : string

Returns

string

getReferenceColumn()

getReferenceColumn() : array

Returns

array

getReferenceTable()

getReferenceTable() : string

Returns

string

setColumns()

setColumns(null|string|array $columns) : \Zend\Db\Sql\Ddl\Constraint\ForeignKey
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$columns

nullstringarray

Returns

\Zend\Db\Sql\Ddl\Constraint\ForeignKey

setName()

setName(string $name) : \Zend\Db\Sql\Ddl\Constraint\ForeignKey
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$name

string

Returns

\Zend\Db\Sql\Ddl\Constraint\ForeignKey

setOnDeleteRule()

setOnDeleteRule(string $onDeleteRule) : \Zend\Db\Sql\Ddl\Constraint\ForeignKey
fluent This method is part of a fluent interface and will return the same instance

Parameters

$onDeleteRule

string

Returns

\Zend\Db\Sql\Ddl\Constraint\ForeignKey

setOnUpdateRule()

setOnUpdateRule(string $onUpdateRule) : \Zend\Db\Sql\Ddl\Constraint\ForeignKey
fluent This method is part of a fluent interface and will return the same instance

Parameters

$onUpdateRule

string

Returns

\Zend\Db\Sql\Ddl\Constraint\ForeignKey

setReferenceColumn()

setReferenceColumn(null|string|array $referenceColumn) : \Zend\Db\Sql\Ddl\Constraint\ForeignKey
fluent This method is part of a fluent interface and will return the same instance

Parameters

$referenceColumn

nullstringarray

Returns

\Zend\Db\Sql\Ddl\Constraint\ForeignKey

setReferenceTable()

setReferenceTable(string $referenceTable) : \Zend\Db\Sql\Ddl\Constraint\ForeignKey
fluent This method is part of a fluent interface and will return the same instance

Parameters

$referenceTable

string

Returns

\Zend\Db\Sql\Ddl\Constraint\ForeignKey

 Properties

 

$columnSpecification

$columnSpecification 

Default

'FOREIGN KEY (%s) '
inherited_from \Zend\Db\Sql\Ddl\Constraint\AbstractConstraint::columnSpecification
 

$columnSpecification

$columnSpecification : string

Default

' (%s)'
 

$columns

$columns : array

Default

array()
 

$name

$name : string

Default

''
 

$namedSpecification

$namedSpecification : string

Default

'CONSTRAINT %s '
 

$onDeleteRule

$onDeleteRule : string

Default

'NO ACTION'
 

$onUpdateRule

$onUpdateRule : string

Default

'NO ACTION'
 

$referenceColumn

$referenceColumn : array<mixed,string>

Default

array()
 

$referenceSpecification

$referenceSpecification : array<mixed,string>

Default

array('REFERENCES %s ', 'ON DELETE %s ON UPDATE %s')
 

$referenceTable

$referenceTable : string

Default

''
 

$specification

$specification : string

Default

''