Doctrine\DBAL\Schema\ForeignKeyConstraint
Synopsis
class ForeignKeyConstraint
extends AbstractAsset
implements
Constraint
{
- // members
- protected Table $_localTable;
- protected array $_localColumnNames;
- protected string $_foreignTableName;
- protected array $_foreignColumnNames;
- protected string $_cascade;
- protected array $_options;
- // Inherited members from AbstractAsset
- protected string $_name;
- protected string $_namespace;
- protected bool $_quoted;
- // methods
- public void __construct()
- public string getLocalTableName()
- public void setLocalTable()
- public array getLocalColumns()
- public void getColumns()
- public string getForeignTableName()
- public string getUnqualifiedForeignTableName()
- public string getQuotedForeignTableName()
- public array getForeignColumns()
- public void hasOption()
- public void getOption()
- public array getOptions()
- public string|null onUpdate()
- public string|null onDelete()
- private string|null _onEvent()
- // Inherited methods from AbstractAsset
- protected void _setName()
- public bool isInDefaultNamespace()
- public string getNamespaceName()
- public string getShortestName()
- public string getFullQualifiedName()
- public bool isQuoted()
- protected bool isIdentifierQuoted()
- protected string trimQuotes()
- public string getName()
- public string getQuotedName()
- protected string _generateIdentifierName()
Hierarchy
Members
protected
- $_cascade — string
- $_foreignColumnNames — array
- $_foreignTableName — string
- $_localColumnNames — array
- $_localTable — Doctrine\DBAL\Schema\Table
- $_name — string
- $_namespace
—
string
Namespace of the asset. If none isset the default namespace is assumed. - $_options — array
- $_quoted — Doctrine\DBAL\Schema\bool
Methods
private
public
- __construct()
- getColumns()
- getForeignColumns()
- getForeignTableName()
- getLocalColumns()
- getLocalTableName()
- getOption()
- getOptions() — Gets the options associated with this constraint
- getQuotedForeignTableName() — Get the quoted representation of this asset but only if it was defined with one. Otherwise return the plain unquoted value as inserted.
- getUnqualifiedForeignTableName() — Return the non-schema qualified foreign table name.
- hasOption()
- onDelete() — Foreign Key onDelete status
- onUpdate() — Foreign Key onUpdate status
- setLocalTable()
Inherited from Doctrine\DBAL\Schema\AbstractAsset
protected
- _generateIdentifierName() — Generate an identifier from a list of column names obeying a certain string length.
- _setName() — Set name of this asset
- isIdentifierQuoted() — Check if this identifier is quoted.
- trimQuotes() — Trim quotes from the identifier.
public
- getFullQualifiedName() — The normalized name is full-qualified and lowerspaced. Lowerspacing is actually wrong, but we have to do it to keep our sanity. If you are using database objects that only differentiate in the casing (FOO vs Foo) then you will NOT be able to use Doctrine Schema abstraction.
- getName() — Return name of this schema asset.
- getNamespaceName() — Get namespace name of this asset.
- getQuotedName() — Get the quoted representation of this asset but only if it was defined with one. Otherwise return the plain unquoted value as inserted.
- getShortestName() — The shortest name is stripped of the default namespace. All other namespaced elements are returned as full-qualified names.
- isInDefaultNamespace() — Is this asset in the default namespace?
- isQuoted() — Check if this asset's name is quoted