jDbReference
extends jDbConstraint
in package
used to declare a foreign key
Table of Contents
- $columns : array<string|int, string>
- list of columns on which there is the constraint
- $fColumns : array<string|int, string>
- list of foreign columns
- $fTable : string
- name of the foreign table
- $name : mixed
- $onDelete : mixed
- $onUpdate : mixed
- __construct() : mixed
- jDbReference constructor.
Properties
$columns
list of columns on which there is the constraint
public
array<string|int, string>
$columns
= array()
$fColumns
list of foreign columns
public
array<string|int, string>
$fColumns
= array()
$fTable
name of the foreign table
public
string
$fTable
= ''
$name
public
mixed
$name
$onDelete
public
mixed
$onDelete
= ''
$onUpdate
public
mixed
$onUpdate
= ''
Methods
__construct()
jDbReference constructor.
public
__construct([string $name = '' ][, array<string|int, string>|string $columns = array() ][, string $foreignTable = '' ][, array<string|int, string>|string $foreignColumns = array() ]) : mixed
Note: all parameters are optional, to be compatible with Jelix < 1.6.16 where parameters didn't exist
Parameters
- $name : string = ''
- $columns : array<string|int, string>|string = array()
- $foreignTable : string = ''
- $foreignColumns : array<string|int, string>|string = array()