extends |
ORMException |
|---|
An OptimisticLockException is thrown when a version check on an object that uses optimistic locking through a version field fails.
| Methods | ||
|---|---|---|
public
|
__construct(string $msg, object|string|null $entity)
|
# |
public
|
getEntity(): object|string|null
|
# |
public
static
|
lockFailed(object|class-string $entity): OptimisticLockException
|
# |
public
static
|
lockFailedVersionMismatch(
object $entity,
int|string|DateTimeInterface $expectedLockVersion,
int|string|DateTimeInterface $actualLockVersion,
): OptimisticLockException
|
# |
public
static
|
notVersioned(string $entityName): OptimisticLockException
|
# |
| Methods inherited from Exception |
|---|
__wakeup(), getMessage(), getCode(), getFile(), getLine(), getTrace(), getPrevious(), getTraceAsString(), __toString() |
| Properties | |||
|---|---|---|---|
private
|
object|string|null
|
$entity
|
# |