class ORMInvalidArgumentException extends InvalidArgumentException (View source)

Contains exception messages for all invalid lifecycle state exceptions inside UnitOfWork

Methods

scheduleInsertForManagedEntity(object $entity)

No description

scheduleInsertForRemovedEntity(object $entity)

No description

scheduleInsertTwice(object $entity)

No description

entityWithoutIdentity(string $className, object $entity)

No description

readOnlyRequiresManagedEntity(object $entity)

No description

newEntityFoundThroughRelationship(array $assoc, object $entry)

No description

detachedEntityFoundThroughRelationship(array $assoc, object $entry)

No description

entityNotManaged(object $entity)

No description

entityHasNoIdentity(object $entity, string $operation)

No description

entityIsRemoved(object $entity, string $operation)

No description

detachedEntityCannot(object $entity, string $operation)

No description

invalidObject(string $context, mixed $given, int $parameterIndex = 1)

No description

invalidAssociation(ClassMetadata $targetClass, array $assoc, mixed $actualValue)

No description

Details

static ORMInvalidArgumentException scheduleInsertForManagedEntity(object $entity)

Parameters

object $entity

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException scheduleInsertForRemovedEntity(object $entity)

Parameters

object $entity

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException scheduleInsertTwice(object $entity)

Parameters

object $entity

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException entityWithoutIdentity(string $className, object $entity)

Parameters

string $className
object $entity

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException readOnlyRequiresManagedEntity(object $entity)

Parameters

object $entity

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException newEntityFoundThroughRelationship(array $assoc, object $entry)

Parameters

array $assoc
object $entry

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException detachedEntityFoundThroughRelationship(array $assoc, object $entry)

Parameters

array $assoc
object $entry

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException entityNotManaged(object $entity)

Parameters

object $entity

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException entityHasNoIdentity(object $entity, string $operation)

Parameters

object $entity
string $operation

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException entityIsRemoved(object $entity, string $operation)

Parameters

object $entity
string $operation

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException detachedEntityCannot(object $entity, string $operation)

Parameters

object $entity
string $operation

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException invalidObject(string $context, mixed $given, int $parameterIndex = 1)

Parameters

string $context
mixed $given
int $parameterIndex

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException invalidCompositeIdentifier()

static ORMInvalidArgumentException invalidIdentifierBindingEntity()

static ORMInvalidArgumentException invalidAssociation(ClassMetadata $targetClass, array $assoc, mixed $actualValue)

Parameters

ClassMetadata $targetClass
array $assoc
mixed $actualValue

Return Value

ORMInvalidArgumentException