Documentation

ORMInvalidArgumentException extends InvalidArgumentException
in package

Contains exception messages for all invalid lifecycle state exceptions inside UnitOfWork

Tags
psalm-import-type

AssociationMapping from ClassMetadata

Table of Contents

Methods

detachedEntityCannot()  : ORMInvalidArgumentException
detachedEntityFoundThroughRelationship()  : ORMInvalidArgumentException
entityHasNoIdentity()  : ORMInvalidArgumentException
entityIsRemoved()  : ORMInvalidArgumentException
entityNotManaged()  : ORMInvalidArgumentException
entityWithoutIdentity()  : ORMInvalidArgumentException
invalidAssociation()  : self
invalidCompositeIdentifier()  : ORMInvalidArgumentException
invalidEntityName()  : self
Used when a given entityName hasn't the good type
invalidIdentifierBindingEntity()  : ORMInvalidArgumentException
invalidObject()  : ORMInvalidArgumentException
newEntitiesFoundThroughRelationships()  : ORMInvalidArgumentException
newEntityFoundThroughRelationship()  : ORMInvalidArgumentException
readOnlyRequiresManagedEntity()  : ORMInvalidArgumentException
scheduleInsertForManagedEntity()  : ORMInvalidArgumentException
scheduleInsertForRemovedEntity()  : ORMInvalidArgumentException
scheduleInsertTwice()  : ORMInvalidArgumentException
newEntityFoundThroughRelationshipMessage()  : string
objToStr()  : string
Helper method to show an object as string.

Methods

invalidAssociation()

public static invalidAssociation(ClassMetadata $targetClass, AssociationMapping $assoc, mixed $actualValue) : self
Parameters
$targetClass : ClassMetadata
$assoc : AssociationMapping
$actualValue : mixed
Return values
self

invalidEntityName()

Used when a given entityName hasn't the good type

public static invalidEntityName(mixed $entityName) : self
Parameters
$entityName : mixed

The given entity (which shouldn't be a string)

Tags
deprecated

This method will be removed in 3.0.

Return values
self

newEntitiesFoundThroughRelationships()

public static newEntitiesFoundThroughRelationships(mixed $newEntitiesWithAssociations) : ORMInvalidArgumentException
Parameters
$newEntitiesWithAssociations : mixed
Tags
psalm-param

non-empty-list<array{AssociationMapping, object}> $newEntitiesWithAssociations non-empty an array of [array $associationMapping, object $entity] pairs

Return values
ORMInvalidArgumentException

newEntityFoundThroughRelationshipMessage()

private static newEntityFoundThroughRelationshipMessage(array<string|int, mixed> $associationMapping, object $entity) : string
Parameters
$associationMapping : array<string|int, mixed>
$entity : object
Tags
psalm-param

AssociationMapping $associationMapping

Return values
string

objToStr()

Helper method to show an object as string.

private static objToStr(object $obj) : string
Parameters
$obj : object
Return values
string

        
On this page

Search results