implements Phalcon\Db\ReferenceInterface
Source on GitHub
Allows to define reference constraints on tables
$reference = new \Phalcon\Db\Reference("field_fk", array(
'referencedSchema' => "invoicing",
'referencedTable' => "products",
'columns' => array("product_type", "product_code"),
'referencedColumns' => array("type", "code")
));
Methods
public getName ()
Constraint name
public getSchemaName ()
...
public getReferencedSchema ()
...
public getReferencedTable ()
Ref