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

newEntitiesFoundThroughRelationships(array[][]|object[][] $newEntitiesWithAssociations)

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, AssociationMetadata $association, $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 newEntitiesFoundThroughRelationships(array[][]|object[][] $newEntitiesWithAssociations)

Parameters

array[][]|object[][] $newEntitiesWithAssociations non-empty an array of [$associationMetadata, $entity] pairs

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException newEntityFoundThroughRelationship(AssociationMetadata $association, $entry)

Parameters

AssociationMetadata $association
$entry

Return Value

ORMInvalidArgumentException

static ORMInvalidArgumentException detachedEntityFoundThroughRelationship(AssociationMetadata $association, $entry)

Parameters

AssociationMetadata $association
$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, AssociationMetadata $association, $actualValue)

Parameters

ClassMetadata $targetClass
AssociationMetadata $association
$actualValue

Return Value

ORMInvalidArgumentException