Db\Reference
Class Phalcon\Db\Reference
implements Phalcon\Db\ReferenceInterface
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 __construct (string $referenceName, array $definition)
Phalcon\Db\Reference constructor
public string getName ()
Gets the index name