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 Foreign

Represent a column in SQL with a foreign key constraint to another column

Alchemy\core\Element implements Alchemy\core\IElement
Extended by Alchemy\core\schema\TableElement
Extended by Alchemy\core\schema\Column implements Alchemy\util\promise\IPromisable
Extended by Alchemy\core\schema\Foreign
Namespace: Alchemy\core\schema
Located at alchemy/core/schema/Foreign.php
Methods summary
public Alchemy\core\schema\TableElement
# copy( array $args = array(), mixed $table = null, mixed $name = '?' )

Duplicates this, but possibly as a different class

Duplicates this, but possibly as a different class

Returns

Alchemy\core\schema\TableElement

Overrides

Alchemy\core\schema\TableElement::copy()
Methods inherited from Alchemy\core\schema\Column
decode(), encode(), find(), getArg(), getForeignKey(), getIndex(), getRef(), isNullable(), isPrimaryKeyPart(), list_promisable_methods()
Methods inherited from Alchemy\core\schema\TableElement
__construct(), getName(), getTable()
Methods inherited from Alchemy\core\Element
__callStatic(), __clone(), addTag(), addTags(), define(), define_alias(), getDescription(), getID(), getTag(), getType(), get_definition(), listTags(), normalize_arg()
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