💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# Class **Phalcon\Db\Reference**[](# "永久链接至标题") *implements*[*Phalcon\Db\ReferenceInterface*](#) Allows to define reference constraints on tables ~~~ <?php $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** () Referenced Table public **getColumns** () Local reference columns public **getReferencedColumns** () Referenced Columns public **getOnDelete** () ON DELETE public **getOnUpdate** () ON UPDATE public **__construct** (*unknown* $name, *unknown* $definition) Phalcon\Db\Reference constructor public static **__set_state** (*unknown* $data) Restore a Phalcon\Db\Reference object from export | - [索引](# "总目录") - [下一页](# "Class Phalcon\Db\Result\Pdo") | - [上一页](# "Class Phalcon\Db\RawValue") | - [API Indice](#) »