SchemaException
extends DBALException
in package
Table of Contents
- COLUMN_ALREADY_EXISTS = 40
- COLUMN_DOESNT_EXIST = 30
- FOREIGNKEY_DOESNT_EXIST = 100
- INDEX_ALREADY_EXISTS = 60
- INDEX_DOESNT_EXIST = 50
- INDEX_INVALID_NAME = 90
- NAMESPACE_ALREADY_EXISTS = 110
- SEQUENCE_ALREADY_EXISTS = 80
- SEQUENCE_DOENST_EXIST = 70
- TABLE_ALREADY_EXISTS = 20
- TABLE_DOESNT_EXIST = 10
- alterTableChangeNotSupported() : SchemaException
- columnAlreadyExists() : SchemaException
- columnDoesNotExist() : SchemaException
- driverException() : DBALException
- driverExceptionDuringQuery() : DBALException
- driverRequired() : DBALException
- foreignKeyDoesNotExist() : SchemaException
- indexAlreadyExists() : SchemaException
- indexDoesNotExist() : SchemaException
- indexNameInvalid() : SchemaException
- invalidDriverClass() : DBALException
- invalidPdoInstance() : DBALException
- invalidPlatformSpecified() : DBALException
- invalidPlatformVersionSpecified() : DBALException
- Returns a new instance for an invalid specified platform version.
- invalidTableName() : DBALException
- invalidWrapperClass() : DBALException
- limitOffsetInvalid() : DBALException
- namedForeignKeyRequired() : SchemaException
- namespaceAlreadyExists() : SchemaException
- noColumnsSpecifiedForTable() : DBALException
- notSupported() : DBALException
- sequenceAlreadyExists() : SchemaException
- sequenceDoesNotExist() : SchemaException
- tableAlreadyExists() : SchemaException
- tableDoesNotExist() : SchemaException
- typeExists() : DBALException
- typeNotFound() : DBALException
- unknownColumnType() : DBALException
- unknownDriver() : DBALException
- formatParameters() : string
- Returns a human-readable representation of an array of parameters.
Constants
COLUMN_ALREADY_EXISTS
public
mixed
COLUMN_ALREADY_EXISTS
= 40
COLUMN_DOESNT_EXIST
public
mixed
COLUMN_DOESNT_EXIST
= 30
FOREIGNKEY_DOESNT_EXIST
public
mixed
FOREIGNKEY_DOESNT_EXIST
= 100
INDEX_ALREADY_EXISTS
public
mixed
INDEX_ALREADY_EXISTS
= 60
INDEX_DOESNT_EXIST
public
mixed
INDEX_DOESNT_EXIST
= 50
INDEX_INVALID_NAME
public
mixed
INDEX_INVALID_NAME
= 90
NAMESPACE_ALREADY_EXISTS
public
mixed
NAMESPACE_ALREADY_EXISTS
= 110
SEQUENCE_ALREADY_EXISTS
public
mixed
SEQUENCE_ALREADY_EXISTS
= 80
SEQUENCE_DOENST_EXIST
public
mixed
SEQUENCE_DOENST_EXIST
= 70
TABLE_ALREADY_EXISTS
public
mixed
TABLE_ALREADY_EXISTS
= 20
TABLE_DOESNT_EXIST
public
mixed
TABLE_DOESNT_EXIST
= 10
Methods
alterTableChangeNotSupported()
public
static alterTableChangeNotSupported(string $changeName) : SchemaException
Parameters
- $changeName : string
Return values
SchemaException —columnAlreadyExists()
public
static columnAlreadyExists(string $tableName, string $columnName) : SchemaException
Parameters
- $tableName : string
- $columnName : string
Return values
SchemaException —columnDoesNotExist()
public
static columnDoesNotExist(string $columnName, string $table) : SchemaException
Parameters
- $columnName : string
- $table : string
Return values
SchemaException —driverException()
public
static driverException(Driver $driver, Exception $driverEx) : DBALException
Parameters
- $driver : Driver
- $driverEx : Exception
Return values
DBALException —driverExceptionDuringQuery()
public
static driverExceptionDuringQuery(Driver $driver, Exception $driverEx, string $sql[, array<string|int, mixed> $params = array() ]) : DBALException
Parameters
- $driver : Driver
- $driverEx : Exception
- $sql : string
- $params : array<string|int, mixed> = array()
Return values
DBALException —driverRequired()
public
static driverRequired([string|null $url = null ]) : DBALException
Parameters
- $url : string|null = null
-
The URL that was provided in the connection parameters (if any).
Return values
DBALException —foreignKeyDoesNotExist()
public
static foreignKeyDoesNotExist(string $fkName, string $table) : SchemaException
Parameters
- $fkName : string
- $table : string
Return values
SchemaException —indexAlreadyExists()
public
static indexAlreadyExists(string $indexName, string $table) : SchemaException
Parameters
- $indexName : string
- $table : string
Return values
SchemaException —indexDoesNotExist()
public
static indexDoesNotExist(string $indexName, string $table) : SchemaException
Parameters
- $indexName : string
- $table : string
Return values
SchemaException —indexNameInvalid()
public
static indexNameInvalid(string $indexName) : SchemaException
Parameters
- $indexName : string
Return values
SchemaException —invalidDriverClass()
public
static invalidDriverClass(string $driverClass) : DBALException
Parameters
- $driverClass : string
Return values
DBALException —invalidPdoInstance()
public
static invalidPdoInstance() : DBALException
Return values
DBALException —invalidPlatformSpecified()
public
static invalidPlatformSpecified() : DBALException
Return values
DBALException —invalidPlatformVersionSpecified()
Returns a new instance for an invalid specified platform version.
public
static invalidPlatformVersionSpecified(string $version, string $expectedFormat) : DBALException
Parameters
- $version : string
-
The invalid platform version given.
- $expectedFormat : string
-
The expected platform version format.
Return values
DBALException —invalidTableName()
public
static invalidTableName(string $tableName) : DBALException
Parameters
- $tableName : string
Return values
DBALException —invalidWrapperClass()
public
static invalidWrapperClass(string $wrapperClass) : DBALException
Parameters
- $wrapperClass : string
Return values
DBALException —limitOffsetInvalid()
public
static limitOffsetInvalid() : DBALException
Return values
DBALException —namedForeignKeyRequired()
public
static namedForeignKeyRequired(Table $localTable, ForeignKeyConstraint $foreignKey) : SchemaException
Parameters
- $localTable : Table
- $foreignKey : ForeignKeyConstraint
Return values
SchemaException —namespaceAlreadyExists()
public
static namespaceAlreadyExists(string $namespaceName) : SchemaException
Parameters
- $namespaceName : string
Return values
SchemaException —noColumnsSpecifiedForTable()
public
static noColumnsSpecifiedForTable(string $tableName) : DBALException
Parameters
- $tableName : string
Return values
DBALException —notSupported()
public
static notSupported(string $method) : DBALException
Parameters
- $method : string
Return values
DBALException —sequenceAlreadyExists()
public
static sequenceAlreadyExists(string $sequenceName) : SchemaException
Parameters
- $sequenceName : string
Return values
SchemaException —sequenceDoesNotExist()
public
static sequenceDoesNotExist(string $sequenceName) : SchemaException
Parameters
- $sequenceName : string
Return values
SchemaException —tableAlreadyExists()
public
static tableAlreadyExists(string $tableName) : SchemaException
Parameters
- $tableName : string
Return values
SchemaException —tableDoesNotExist()
public
static tableDoesNotExist(string $tableName) : SchemaException
Parameters
- $tableName : string
Return values
SchemaException —typeExists()
public
static typeExists(string $name) : DBALException
Parameters
- $name : string
Return values
DBALException —typeNotFound()
public
static typeNotFound(string $name) : DBALException
Parameters
- $name : string
Return values
DBALException —unknownColumnType()
public
static unknownColumnType(string $name) : DBALException
Parameters
- $name : string
Return values
DBALException —unknownDriver()
public
static unknownDriver(string $unknownDriverName, array<string|int, mixed> $knownDrivers) : DBALException
Parameters
- $unknownDriverName : string
- $knownDrivers : array<string|int, mixed>
Return values
DBALException —formatParameters()
Returns a human-readable representation of an array of parameters.
private
static formatParameters(array<string|int, mixed> $params) : string
This properly handles binary data by returning a hex representation.
Parameters
- $params : array<string|int, mixed>