implements Phalcon\Db\ReferenceInterface
Allows to define reference constraints on tables
$reference = new \Phalcon\Db\Reference(
"field_fk",
[
"referencedSchema" => "invoicing",
"referencedTable" => "products",
"columns" => [
"product_type",
"product_code",
],
"referencedColumns" => [
"type",
"code",
],
]
);
Constraint name
...
...
Referenced Table
Local reference columns
Referenced Columns
ON DELETE
ON UPDATE
Phalcon\Db\Reference constructor
Restore a Phalcon\Db\Reference object from export
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Db_Reference.html