Overview

Namespaces

  • Alchemy
    • core
      • query
      • schema
    • dialect
    • engine
    • orm
    • tests
    • util
      • promise
  • PHP

Classes

  • Column
  • Foreign
  • ForeignKey
  • Index
  • Table
  • TableElement
  • Overview
  • Namespace
  • Class
  • Tree

Class ForeignKey

Class for representing a foreign key constraint in SQL

Alchemy\core\Element implements Alchemy\core\IElement
Extended by Alchemy\core\schema\TableElement
Extended by Alchemy\core\schema\Index
Extended by Alchemy\core\schema\ForeignKey
Namespace: Alchemy\core\schema
Located at alchemy/core/schema/ForeignKey.php
Methods summary
public Alchemy\core\schema\Table
# getSourceTable( )

Get the table the key references

Get the table the key references

Returns

Alchemy\core\schema\Table
public array
# listSources( )

Get the columns the key references

Get the columns the key references

Returns

array
public
# getNameMap( )
protected
# resolve( )

Overrides

Alchemy\core\schema\Index::resolve()
Methods inherited from Alchemy\core\schema\Index
getName(), listColumns()
Methods inherited from Alchemy\core\schema\TableElement
__construct(), copy(), getTable()
Methods inherited from Alchemy\core\Element
__callStatic(), __clone(), addTag(), addTags(), define(), define_alias(), getDescription(), getID(), getTag(), getType(), get_definition(), listTags(), normalize_arg()
Properties summary
protected static array $default_args array( array(), array(), 'ondelete' => 'restrict', 'onupdate' => 'restrict')
#
protected mixed $sources
#
Properties inherited from Alchemy\core\schema\Index
$columns
Properties inherited from Alchemy\core\schema\TableElement
$args, $name, $table
Properties inherited from Alchemy\core\Element
$id, $tags, $type
API documentation generated by ApiGen 2.8.0