ForeignKeyDoesNotExist
extends SchemaException
in package
FinalYes
Tags
Table of Contents
Constants
- COLUMN_ALREADY_EXISTS = 40
- COLUMN_DOESNT_EXIST = 30
- CONSTRAINT_DOESNT_EXIST = 110
- FOREIGNKEY_DOESNT_EXIST = 100
- INDEX_ALREADY_EXISTS = 60
- INDEX_DOESNT_EXIST = 50
- INDEX_INVALID_NAME = 90
- NAMESPACE_ALREADY_EXISTS = 120
- SEQUENCE_ALREADY_EXISTS = 80
- SEQUENCE_DOENST_EXIST = 70
- TABLE_ALREADY_EXISTS = 20
- TABLE_DOESNT_EXIST = 10
Methods
- alterTableChangeNotSupported() : SchemaException
- columnAlreadyExists() : SchemaException
- columnDoesNotExist() : SchemaException
- driverRequired() : self
- foreignKeyDoesNotExist() : SchemaException
- indexAlreadyExists() : SchemaException
- indexDoesNotExist() : SchemaException
- indexNameInvalid() : SchemaException
- invalidDriverClass() : self
- invalidPlatformType() : self
- invalidPlatformVersionSpecified() : self
- Returns a new instance for an invalid specified platform version.
- invalidWrapperClass() : self
- namedForeignKeyRequired() : SchemaException
- namespaceAlreadyExists() : SchemaException
- new() : self
- noColumnsSpecifiedForTable() : self
- notSupported() : self
- sequenceAlreadyExists() : SchemaException
- sequenceDoesNotExist() : SchemaException
- tableAlreadyExists() : SchemaException
- tableDoesNotExist() : SchemaException
- typeAlreadyRegistered() : self
- typeExists() : self
- typeNotFound() : self
- typeNotRegistered() : self
- uniqueConstraintDoesNotExist() : SchemaException
- unknownColumnType() : self
- unknownDriver() : self
Constants
COLUMN_ALREADY_EXISTS
public
mixed
COLUMN_ALREADY_EXISTS
= 40
Tags
COLUMN_DOESNT_EXIST
public
mixed
COLUMN_DOESNT_EXIST
= 30
Tags
CONSTRAINT_DOESNT_EXIST
public
mixed
CONSTRAINT_DOESNT_EXIST
= 110
Tags
FOREIGNKEY_DOESNT_EXIST
public
mixed
FOREIGNKEY_DOESNT_EXIST
= 100
Tags
INDEX_ALREADY_EXISTS
public
mixed
INDEX_ALREADY_EXISTS
= 60
Tags
INDEX_DOESNT_EXIST
public
mixed
INDEX_DOESNT_EXIST
= 50
Tags
INDEX_INVALID_NAME
public
mixed
INDEX_INVALID_NAME
= 90
Tags
NAMESPACE_ALREADY_EXISTS
public
mixed
NAMESPACE_ALREADY_EXISTS
= 120
Tags
SEQUENCE_ALREADY_EXISTS
public
mixed
SEQUENCE_ALREADY_EXISTS
= 80
Tags
SEQUENCE_DOENST_EXIST
public
mixed
SEQUENCE_DOENST_EXIST
= 70
Tags
TABLE_ALREADY_EXISTS
public
mixed
TABLE_ALREADY_EXISTS
= 20
Tags
TABLE_DOESNT_EXIST
public
mixed
TABLE_DOESNT_EXIST
= 10
Tags
Methods
alterTableChangeNotSupported()
public
static alterTableChangeNotSupported(string $changeName) : SchemaException
Parameters
- $changeName : string
Return values
SchemaExceptioncolumnAlreadyExists()
public
static columnAlreadyExists(string $tableName, string $columnName) : SchemaException
Parameters
- $tableName : string
- $columnName : string
Return values
SchemaExceptioncolumnDoesNotExist()
public
static columnDoesNotExist(string $columnName, string $table) : SchemaException
Parameters
- $columnName : string
- $table : string
Return values
SchemaExceptiondriverRequired()
public
static driverRequired([string|null $url = null ]) : self
Parameters
- $url : string|null = null
-
The URL that was provided in the connection parameters (if any).
Return values
selfforeignKeyDoesNotExist()
public
static foreignKeyDoesNotExist(string $fkName, string $table) : SchemaException
Parameters
- $fkName : string
- $table : string
Return values
SchemaExceptionindexAlreadyExists()
public
static indexAlreadyExists(string $indexName, string $table) : SchemaException
Parameters
- $indexName : string
- $table : string
Return values
SchemaExceptionindexDoesNotExist()
public
static indexDoesNotExist(string $indexName, string $table) : SchemaException
Parameters
- $indexName : string
- $table : string
Return values
SchemaExceptionindexNameInvalid()
public
static indexNameInvalid(string $indexName) : SchemaException
Parameters
- $indexName : string
Return values
SchemaExceptioninvalidDriverClass()
public
static invalidDriverClass(string $driverClass) : self
Parameters
- $driverClass : string
Return values
selfinvalidPlatformType()
public
static invalidPlatformType(mixed $invalidPlatform) : self
Parameters
- $invalidPlatform : mixed
Return values
selfinvalidPlatformVersionSpecified()
Returns a new instance for an invalid specified platform version.
public
static invalidPlatformVersionSpecified(string $version, string $expectedFormat) : self
Parameters
- $version : string
-
The invalid platform version given.
- $expectedFormat : string
-
The expected platform version format.
Return values
selfinvalidWrapperClass()
public
static invalidWrapperClass(string $wrapperClass) : self
Parameters
- $wrapperClass : string
Return values
selfnamedForeignKeyRequired()
public
static namedForeignKeyRequired(Table $localTable, ForeignKeyConstraint $foreignKey) : SchemaException
Parameters
- $localTable : Table
- $foreignKey : ForeignKeyConstraint
Return values
SchemaExceptionnamespaceAlreadyExists()
public
static namespaceAlreadyExists(string $namespaceName) : SchemaException
Parameters
- $namespaceName : string
Return values
SchemaExceptionnew()
public
static new(string $foreignKeyName, string $table) : self
Parameters
- $foreignKeyName : string
- $table : string
Return values
selfnoColumnsSpecifiedForTable()
public
static noColumnsSpecifiedForTable(string $tableName) : self
Parameters
- $tableName : string
Return values
selfnotSupported()
public
static notSupported(string $method) : self
Parameters
- $method : string
Return values
selfsequenceAlreadyExists()
public
static sequenceAlreadyExists(string $name) : SchemaException
Parameters
- $name : string
Return values
SchemaExceptionsequenceDoesNotExist()
public
static sequenceDoesNotExist(string $name) : SchemaException
Parameters
- $name : string
Return values
SchemaExceptiontableAlreadyExists()
public
static tableAlreadyExists(string $tableName) : SchemaException
Parameters
- $tableName : string
Return values
SchemaExceptiontableDoesNotExist()
public
static tableDoesNotExist(string $tableName) : SchemaException
Parameters
- $tableName : string
Return values
SchemaExceptiontypeAlreadyRegistered()
public
static typeAlreadyRegistered(Type $type) : self
Parameters
- $type : Type
Return values
selftypeExists()
public
static typeExists(string $name) : self
Parameters
- $name : string
Return values
selftypeNotFound()
public
static typeNotFound(string $name) : self
Parameters
- $name : string
Return values
selftypeNotRegistered()
public
static typeNotRegistered(Type $type) : self
Parameters
- $type : Type
Return values
selfuniqueConstraintDoesNotExist()
public
static uniqueConstraintDoesNotExist(string $constraintName, string $table) : SchemaException
Parameters
- $constraintName : string
- $table : string
Return values
SchemaExceptionunknownColumnType()
public
static unknownColumnType(string $name) : self
Parameters
- $name : string
Return values
selfunknownDriver()
public
static unknownDriver(string $unknownDriverName, array<string|int, string> $knownDrivers) : self
Parameters
- $unknownDriverName : string
- $knownDrivers : array<string|int, string>