OptimisticLockException
extends ORMException
in package
An OptimisticLockException is thrown when a version check on an object that uses optimistic locking through a version field fails.
Table of Contents
- $entity : object|null
- __construct() : mixed
- cantUseInOperatorOnCompositeKeys() : ORMException
- entityManagerClosed() : ORMException
- findByRequiresParameter() : ORMException
- getEntity() : object|null
- Gets the entity that caused the exception.
- invalidEntityRepository() : ORMException
- invalidFindByInverseAssociation() : ORMException
- invalidHydrationMode() : ORMException
- invalidMagicCall() : ORMException
- invalidOrientation() : ORMException
- invalidResultCacheDriver() : ORMException
- lockFailed() : OptimisticLockException
- lockFailedVersionMismatch() : OptimisticLockException
- metadataCacheNotConfigured() : ORMException
- metadataCacheUsesNonPersistentCache() : ORMException
- mismatchedEventManager() : ORMException
- missingIdentifierField() : ORMException
- missingMappingDriverImpl() : ORMException
- namedNativeQueryNotFound() : ORMException
- namedQueryNotFound() : ORMException
- notSupported() : ORMException
- notVersioned() : OptimisticLockException
- proxyClassesAlwaysRegenerating() : ORMException
- queryCacheNotConfigured() : ORMException
- queryCacheUsesNonPersistentCache() : ORMException
- unexpectedAssociationValue() : ORMException
- unknownEntityNamespace() : ORMException
- unrecognizedField() : ORMException
- unrecognizedIdentifierFields() : ORMException
Properties
$entity
private
object|null
$entity
Methods
__construct()
public
__construct(string $msg, object|null $entity) : mixed
Parameters
- $msg : string
- $entity : object|null
Return values
mixed —cantUseInOperatorOnCompositeKeys()
public
static cantUseInOperatorOnCompositeKeys() : ORMException
Tags
Return values
ORMException —entityManagerClosed()
public
static entityManagerClosed() : ORMException
Tags
Return values
ORMException —findByRequiresParameter()
public
static findByRequiresParameter(string $methodName) : ORMException
Parameters
- $methodName : string
Tags
Return values
ORMException —getEntity()
Gets the entity that caused the exception.
public
getEntity() : object|null
Return values
object|null —invalidEntityRepository()
public
static invalidEntityRepository(string $className) : ORMException
Parameters
- $className : string
Tags
Return values
ORMException —invalidFindByInverseAssociation()
public
static invalidFindByInverseAssociation(string $entityName, string $associationFieldName) : ORMException
Parameters
- $entityName : string
- $associationFieldName : string
Tags
Return values
ORMException —invalidHydrationMode()
public
static invalidHydrationMode(string $mode) : ORMException
Parameters
- $mode : string
Tags
Return values
ORMException —invalidMagicCall()
public
static invalidMagicCall(string $entityName, string $fieldName, string $method) : ORMException
Parameters
- $entityName : string
- $fieldName : string
- $method : string
Tags
Return values
ORMException —invalidOrientation()
public
static invalidOrientation(string $className, string $field) : ORMException
Parameters
- $className : string
- $field : string
Tags
Return values
ORMException —invalidResultCacheDriver()
public
static invalidResultCacheDriver() : ORMException
Tags
Return values
ORMException —lockFailed()
public
static lockFailed(object $entity) : OptimisticLockException
Parameters
- $entity : object
Return values
OptimisticLockException —lockFailedVersionMismatch()
public
static lockFailedVersionMismatch(object $entity, int|DateTimeInterface $expectedLockVersion, int|DateTimeInterface $actualLockVersion) : OptimisticLockException
Parameters
- $entity : object
- $expectedLockVersion : int|DateTimeInterface
- $actualLockVersion : int|DateTimeInterface
Return values
OptimisticLockException —metadataCacheNotConfigured()
public
static metadataCacheNotConfigured() : ORMException
Tags
Return values
ORMException —metadataCacheUsesNonPersistentCache()
public
static metadataCacheUsesNonPersistentCache(Cache $cache) : ORMException
Parameters
- $cache : Cache
Tags
Return values
ORMException —mismatchedEventManager()
public
static mismatchedEventManager() : ORMException
Tags
Return values
ORMException —missingIdentifierField()
public
static missingIdentifierField(string $className, string $fieldName) : ORMException
Parameters
- $className : string
- $fieldName : string
Tags
Return values
ORMException —missingMappingDriverImpl()
public
static missingMappingDriverImpl() : ORMException
Tags
Return values
ORMException —namedNativeQueryNotFound()
public
static namedNativeQueryNotFound(string $nativeQueryName) : ORMException
Parameters
- $nativeQueryName : string
Tags
Return values
ORMException —namedQueryNotFound()
public
static namedQueryNotFound(string $queryName) : ORMException
Parameters
- $queryName : string
Tags
Return values
ORMException —notSupported()
public
static notSupported() : ORMException
Tags
Return values
ORMException —notVersioned()
public
static notVersioned(string $entityName) : OptimisticLockException
Parameters
- $entityName : string
Return values
OptimisticLockException —proxyClassesAlwaysRegenerating()
public
static proxyClassesAlwaysRegenerating() : ORMException
Tags
Return values
ORMException —queryCacheNotConfigured()
public
static queryCacheNotConfigured() : ORMException
Tags
Return values
ORMException —queryCacheUsesNonPersistentCache()
public
static queryCacheUsesNonPersistentCache(Cache $cache) : ORMException
Parameters
- $cache : Cache
Tags
Return values
ORMException —unexpectedAssociationValue()
public
static unexpectedAssociationValue(string $class, string $association, string $given, string $expected) : ORMException
Parameters
- $class : string
- $association : string
- $given : string
- $expected : string
Tags
Return values
ORMException —unknownEntityNamespace()
public
static unknownEntityNamespace(string $entityNamespaceAlias) : ORMException
Parameters
- $entityNamespaceAlias : string
Tags
Return values
ORMException —unrecognizedField()
public
static unrecognizedField(string $field) : ORMException
Parameters
- $field : string
Tags
Return values
ORMException —unrecognizedIdentifierFields()
public
static unrecognizedIdentifierFields(string $className, array<string|int, string> $fieldNames) : ORMException
Parameters
- $className : string
- $fieldNames : array<string|int, string>