ForeignKeyConstraintViolationException
extends ConstraintViolationException
in package
Exception for a foreign key constraint violation detected in the driver.
Tags
Table of Contents
Properties
Methods
- driverRequired() : self
- getQuery() : Query|null
- getSQLState() : string|null
- Returns the SQLSTATE the driver was in at the time the error occurred.
- invalidDriverClass() : self
- invalidPlatformType() : self
- invalidPlatformVersionSpecified() : self
- Returns a new instance for an invalid specified platform version.
- invalidWrapperClass() : self
- noColumnsSpecifiedForTable() : self
- notSupported() : self
- typeAlreadyRegistered() : self
- typeExists() : self
- typeNotFound() : self
- typeNotRegistered() : self
- unknownColumnType() : self
- unknownDriver() : self
Properties
$query
The query that triggered the exception, if any.
private
Query|null
$query
Methods
driverRequired()
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
selfgetQuery()
public
getQuery() : Query|null
Return values
Query|nullgetSQLState()
Returns the SQLSTATE the driver was in at the time the error occurred.
public
getSQLState() : string|null
Return values
string|nullinvalidDriverClass()
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
selfnoColumnsSpecifiedForTable()
public
static noColumnsSpecifiedForTable(string $tableName) : self
Parameters
- $tableName : string
Return values
selfnotSupported()
public
static notSupported(string $method) : self
Parameters
- $method : string
Return values
selftypeAlreadyRegistered()
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
selfunknownColumnType()
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>