Documentation

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

NAMESPACE_ALREADY_EXISTS

public mixed NAMESPACE_ALREADY_EXISTS = 110

Methods

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

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

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>
Return values
string

Search results