class MappingException extends ORMException (View source)

A MappingException indicates that something is wrong with the mapping setup.

Methods

static ORMException
missingMappingDriverImpl()

No description

static ORMException
namedQueryNotFound(string $queryName)

No description

static ORMException
namedNativeQueryNotFound(string $nativeQueryName)

No description

static ORMException
entityMissingForeignAssignedId(object $entity, object $relatedEntity)

No description

static ORMException
entityMissingAssignedIdForField(object $entity, string $field)

No description

static ORMException
unrecognizedField(string $field)

No description

unexpectedAssociationValue(string $class, string $association, string $given, string $expected)

No description

static ORMException
invalidOrientation(string $className, string $field)

No description

static ORMException
invalidFlushMode(string $mode)

No description

static ORMException
entityManagerClosed()

No description

static ORMException
invalidHydrationMode(string $mode)

No description

static ORMException
mismatchedEventManager()

No description

static ORMException
findByRequiresParameter(string $methodName)

No description

static ORMException
invalidFindByCall(string $entityName, string $fieldName, string $method)

No description

static ORMException
invalidMagicCall(string $entityName, string $fieldName, string $method)

No description

static ORMException
invalidFindByInverseAssociation(string $entityName, string $associationFieldName)

No description

static ORMException
invalidResultCacheDriver()

No description

static ORMException
notSupported()

No description

static ORMException
queryCacheNotConfigured()

No description

static ORMException
metadataCacheNotConfigured()

No description

static ORMException
queryCacheUsesNonPersistentCache(Cache $cache)

No description

static ORMException
metadataCacheUsesNonPersistentCache(Cache $cache)

No description

static ORMException
unknownEntityNamespace(string $entityNamespaceAlias)

No description

static ORMException
invalidEntityRepository(string $className)

No description

static ORMException
missingIdentifierField(string $className, string $fieldName)

No description

static ORMException
unrecognizedIdentifierFields(string $className, string[] $fieldNames)

No description

pathRequired()

No description

identifierRequired(string $entityName)

No description

invalidInheritanceType(string $entityName, string $type)

No description

missingFieldName(string $entity)

No description

missingTargetEntity(string $fieldName)

No description

missingSourceEntity(string $fieldName)

No description

missingEmbeddedClass(string $fieldName)

No description

mappingFileNotFound(string $entityName, string $fileName)

No description

invalidOverrideFieldName(string $className, string $fieldName)

Exception for invalid property name override.

invalidOverrideFieldType(string $className, string $fieldName)

Exception for invalid property type override.

mappingNotFound(string $className, string $fieldName)

No description

queryNotFound(string $className, string $queryName)

No description

resultMappingNotFound(string $className, string $resultName)

No description

emptyQueryMapping(string $entity, string $queryName)

No description

nameIsMandatoryForQueryMapping(string $className)

No description

missingQueryMapping(string $entity, string $queryName)

No description

missingResultSetMappingEntity(string $entity, string $resultName)

No description

missingResultSetMappingFieldName(string $entity, string $resultName)

No description

nameIsMandatoryForSqlResultSetMapping(string $className)

No description

oneToManyRequiresMappedBy(string $fieldName)

No description

joinTableRequired(string $fieldName)

No description

missingRequiredOption(string $field, string $expectedOption, string $hint = '')

Called if a required option was not found but is required

invalidMapping(string $fieldName)

Generic exception for invalid mappings.

reflectionFailure(string $entity, ReflectionException $previousException)

Exception for reflection exceptions - adds the entity name, because there might be long classnames that will be shortened within the stacktrace

joinColumnMustPointToMappedField(string $className, string $joinColumn)

No description

classIsNotAValidEntityOrMappedSuperClass(string $className)

No description

propertyTypeIsRequired(string $className, string $propertyName)

No description

tableIdGeneratorNotImplemented(string $className)

No description

duplicateFieldMapping(string $entity, string $fieldName)

No description

duplicateAssociationMapping(string $entity, string $fieldName)

No description

duplicateQueryMapping(string $entity, string $queryName)

No description

duplicateResultSetMapping(string $entity, string $resultName)

No description

singleIdNotAllowedOnCompositePrimaryKey(string $entity)

No description

noIdDefined(string $entity)

No description

unsupportedOptimisticLockingType(string $entity, string $fieldName, string $unsupportedType)

No description

fileMappingDriversRequireConfiguredDirectoryPath(string|null $path = null)

No description

invalidClassInDiscriminatorMap(string $className, string $owningClass)

Returns an exception that indicates that a class used in a discriminator map does not exist.

duplicateDiscriminatorEntry(string $className, array $entries, array $map)

No description

missingDiscriminatorMap(string $className)

No description

missingDiscriminatorColumn(string $className)

No description

invalidDiscriminatorColumnType(string $className, string $type)

No description

nameIsMandatoryForDiscriminatorColumns(string $className)

No description

cannotVersionIdField(string $className, string $fieldName)

No description

sqlConversionNotAllowedForIdentifiers(string $className, string $fieldName, string $type)

No description

duplicateColumnName(string $className, string $columnName)

No description

illegalToManyAssociationOnMappedSuperclass(string $className, string $field)

No description

cannotMapCompositePrimaryKeyEntitiesAsForeignId(string $className, string $targetEntity, string $targetField)

No description

noSingleAssociationJoinColumnFound(string $className, string $field)

No description

noFieldNameFoundForColumn(string $className, string $column)

No description

illegalOrphanRemovalOnIdentifierAssociation(string $className, string $field)

No description

illegalOrphanRemoval(string $className, string $field)

No description

illegalInverseIdentifierAssociation(string $className, string $field)

No description

illegalToManyIdentifierAssociation(string $className, string $field)

No description

noInheritanceOnMappedSuperClass(string $className)

No description

mappedClassNotPartOfDiscriminatorMap(string $className, string $rootClassName)

No description

lifecycleCallbackMethodNotFound(string $className, string $methodName)

No description

entityListenerClassNotFound(string $listenerName, string $className)

No description

entityListenerMethodNotFound(string $listenerName, string $methodName, string $className)

No description

duplicateEntityListener(string $listenerName, string $methodName, string $className)

No description

invalidFetchMode(string $className, string $annotation)

No description

compositeKeyAssignedIdGeneratorRequired(string $className)

No description

invalidTargetEntityClass(string $targetEntity, string $sourceEntity, string $associationName)

No description

invalidCascadeOption(array $cascades, string $className, string $propertyName)

No description

missingSequenceName(string $className)

No description

infiniteEmbeddableNesting(string $className, string $propertyName)

No description

Details

static ORMException missingMappingDriverImpl()

Return Value

ORMException

static ORMException namedQueryNotFound(string $queryName)

Parameters

string $queryName

Return Value

ORMException

static ORMException namedNativeQueryNotFound(string $nativeQueryName)

Parameters

string $nativeQueryName

Return Value

ORMException

static ORMException entityMissingForeignAssignedId(object $entity, object $relatedEntity)

Parameters

object $entity
object $relatedEntity

Return Value

ORMException

static ORMException entityMissingAssignedIdForField(object $entity, string $field)

Parameters

object $entity
string $field

Return Value

ORMException

static ORMException unrecognizedField(string $field)

Parameters

string $field

Return Value

ORMException

static ORMInvalidArgumentException unexpectedAssociationValue(string $class, string $association, string $given, string $expected)

Parameters

string $class
string $association
string $given
string $expected

Return Value

ORMInvalidArgumentException

static ORMException invalidOrientation(string $className, string $field)

Parameters

string $className
string $field

Return Value

ORMException

static ORMException invalidFlushMode(string $mode)

Parameters

string $mode

Return Value

ORMException

static ORMException entityManagerClosed()

Return Value

ORMException

static ORMException invalidHydrationMode(string $mode)

Parameters

string $mode

Return Value

ORMException

static ORMException mismatchedEventManager()

Return Value

ORMException

static ORMException findByRequiresParameter(string $methodName)

Parameters

string $methodName

Return Value

ORMException

static ORMException invalidFindByCall(string $entityName, string $fieldName, string $method)

Parameters

string $entityName
string $fieldName
string $method

Return Value

ORMException

static ORMException invalidMagicCall(string $entityName, string $fieldName, string $method)

Parameters

string $entityName
string $fieldName
string $method

Return Value

ORMException

static ORMException invalidFindByInverseAssociation(string $entityName, string $associationFieldName)

Parameters

string $entityName
string $associationFieldName

Return Value

ORMException

static ORMException invalidResultCacheDriver()

Return Value

ORMException

static ORMException notSupported()

Return Value

ORMException

static ORMException queryCacheNotConfigured()

Return Value

ORMException

static ORMException metadataCacheNotConfigured()

Return Value

ORMException

static ORMException queryCacheUsesNonPersistentCache(Cache $cache)

Parameters

Cache $cache

Return Value

ORMException

static ORMException metadataCacheUsesNonPersistentCache(Cache $cache)

Parameters

Cache $cache

Return Value

ORMException

static ORMException proxyClassesAlwaysRegenerating()

Return Value

ORMException

static ORMException unknownEntityNamespace(string $entityNamespaceAlias)

Parameters

string $entityNamespaceAlias

Return Value

ORMException

static ORMException invalidEntityRepository(string $className)

Parameters

string $className

Return Value

ORMException

static ORMException missingIdentifierField(string $className, string $fieldName)

Parameters

string $className
string $fieldName

Return Value

ORMException

static ORMException unrecognizedIdentifierFields(string $className, string[] $fieldNames)

Parameters

string $className
string[] $fieldNames

Return Value

ORMException

static ORMException cantUseInOperatorOnCompositeKeys()

Return Value

ORMException

static MappingException pathRequired()

Return Value

MappingException

static MappingException identifierRequired(string $entityName)

Parameters

string $entityName

Return Value

MappingException

static MappingException invalidInheritanceType(string $entityName, string $type)

Parameters

string $entityName
string $type

Return Value

MappingException

static MappingException generatorNotAllowedWithCompositeId()

Return Value

MappingException

static MappingException missingFieldName(string $entity)

Parameters

string $entity

Return Value

MappingException

static MappingException missingTargetEntity(string $fieldName)

Parameters

string $fieldName

Return Value

MappingException

static MappingException missingSourceEntity(string $fieldName)

Parameters

string $fieldName

Return Value

MappingException

static MappingException missingEmbeddedClass(string $fieldName)

Parameters

string $fieldName

Return Value

MappingException

static MappingException mappingFileNotFound(string $entityName, string $fileName)

Parameters

string $entityName
string $fileName

Return Value

MappingException

static MappingException invalidOverrideFieldName(string $className, string $fieldName)

Exception for invalid property name override.

Parameters

string $className The entity's name.
string $fieldName

Return Value

MappingException

static MappingException invalidOverrideFieldType(string $className, string $fieldName)

Exception for invalid property type override.

Parameters

string $className The entity's name.
string $fieldName

Return Value

MappingException

static MappingException mappingNotFound(string $className, string $fieldName)

Parameters

string $className
string $fieldName

Return Value

MappingException

static MappingException queryNotFound(string $className, string $queryName)

Parameters

string $className
string $queryName

Return Value

MappingException

static MappingException resultMappingNotFound(string $className, string $resultName)

Parameters

string $className
string $resultName

Return Value

MappingException

static MappingException emptyQueryMapping(string $entity, string $queryName)

Parameters

string $entity
string $queryName

Return Value

MappingException

static MappingException nameIsMandatoryForQueryMapping(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException missingQueryMapping(string $entity, string $queryName)

Parameters

string $entity
string $queryName

Return Value

MappingException

static MappingException missingResultSetMappingEntity(string $entity, string $resultName)

Parameters

string $entity
string $resultName

Return Value

MappingException

static MappingException missingResultSetMappingFieldName(string $entity, string $resultName)

Parameters

string $entity
string $resultName

Return Value

MappingException

static MappingException nameIsMandatoryForSqlResultSetMapping(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException oneToManyRequiresMappedBy(string $fieldName)

Parameters

string $fieldName

Return Value

MappingException

static MappingException joinTableRequired(string $fieldName)

Parameters

string $fieldName

Return Value

MappingException

static MappingException missingRequiredOption(string $field, string $expectedOption, string $hint = '')

Called if a required option was not found but is required

Parameters

string $field Which field cannot be processed?
string $expectedOption Which option is required
string $hint Can optionally be used to supply a tip for common mistakes, e.g. "Did you think of the plural s?"

Return Value

MappingException

static MappingException invalidMapping(string $fieldName)

Generic exception for invalid mappings.

Parameters

string $fieldName

Return Value

MappingException

static MappingException reflectionFailure(string $entity, ReflectionException $previousException)

Exception for reflection exceptions - adds the entity name, because there might be long classnames that will be shortened within the stacktrace

Parameters

string $entity The entity's name
ReflectionException $previousException

Return Value

MappingException

static MappingException joinColumnMustPointToMappedField(string $className, string $joinColumn)

Parameters

string $className
string $joinColumn

Return Value

MappingException

static MappingException classIsNotAValidEntityOrMappedSuperClass(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException propertyTypeIsRequired(string $className, string $propertyName)

Parameters

string $className
string $propertyName

Return Value

MappingException

static MappingException tableIdGeneratorNotImplemented(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException duplicateFieldMapping(string $entity, string $fieldName)

Parameters

string $entity The entity's name.
string $fieldName The name of the field that was already declared.

Return Value

MappingException

static MappingException duplicateAssociationMapping(string $entity, string $fieldName)

Parameters

string $entity
string $fieldName

Return Value

MappingException

static MappingException duplicateQueryMapping(string $entity, string $queryName)

Parameters

string $entity
string $queryName

Return Value

MappingException

static MappingException duplicateResultSetMapping(string $entity, string $resultName)

Parameters

string $entity
string $resultName

Return Value

MappingException

static MappingException singleIdNotAllowedOnCompositePrimaryKey(string $entity)

Parameters

string $entity

Return Value

MappingException

static MappingException noIdDefined(string $entity)

Parameters

string $entity

Return Value

MappingException

static MappingException unsupportedOptimisticLockingType(string $entity, string $fieldName, string $unsupportedType)

Parameters

string $entity
string $fieldName
string $unsupportedType

Return Value

MappingException

static MappingException fileMappingDriversRequireConfiguredDirectoryPath(string|null $path = null)

Parameters

string|null $path

Return Value

MappingException

static MappingException invalidClassInDiscriminatorMap(string $className, string $owningClass)

Returns an exception that indicates that a class used in a discriminator map does not exist.

An example would be an outdated (maybe renamed) classname.

Parameters

string $className The class that could not be found
string $owningClass The class that declares the discriminator map.

Return Value

MappingException

static MappingException duplicateDiscriminatorEntry(string $className, array $entries, array $map)

Parameters

string $className
array $entries
array $map

Return Value

MappingException

static MappingException missingDiscriminatorMap(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException missingDiscriminatorColumn(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException invalidDiscriminatorColumnType(string $className, string $type)

Parameters

string $className
string $type

Return Value

MappingException

static MappingException nameIsMandatoryForDiscriminatorColumns(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException cannotVersionIdField(string $className, string $fieldName)

Parameters

string $className
string $fieldName

Return Value

MappingException

static MappingException sqlConversionNotAllowedForIdentifiers(string $className, string $fieldName, string $type)

Parameters

string $className
string $fieldName
string $type

Return Value

MappingException

static MappingException duplicateColumnName(string $className, string $columnName)

Parameters

string $className
string $columnName

Return Value

MappingException

static MappingException illegalToManyAssociationOnMappedSuperclass(string $className, string $field)

Parameters

string $className
string $field

Return Value

MappingException

static MappingException cannotMapCompositePrimaryKeyEntitiesAsForeignId(string $className, string $targetEntity, string $targetField)

Parameters

string $className
string $targetEntity
string $targetField

Return Value

MappingException

static MappingException noSingleAssociationJoinColumnFound(string $className, string $field)

Parameters

string $className
string $field

Return Value

MappingException

static MappingException noFieldNameFoundForColumn(string $className, string $column)

Parameters

string $className
string $column

Return Value

MappingException

static MappingException illegalOrphanRemovalOnIdentifierAssociation(string $className, string $field)

Parameters

string $className
string $field

Return Value

MappingException

static MappingException illegalOrphanRemoval(string $className, string $field)

Parameters

string $className
string $field

Return Value

MappingException

static MappingException illegalInverseIdentifierAssociation(string $className, string $field)

Parameters

string $className
string $field

Return Value

MappingException

static MappingException illegalToManyIdentifierAssociation(string $className, string $field)

Parameters

string $className
string $field

Return Value

MappingException

static MappingException noInheritanceOnMappedSuperClass(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException mappedClassNotPartOfDiscriminatorMap(string $className, string $rootClassName)

Parameters

string $className
string $rootClassName

Return Value

MappingException

static MappingException lifecycleCallbackMethodNotFound(string $className, string $methodName)

Parameters

string $className
string $methodName

Return Value

MappingException

static MappingException entityListenerClassNotFound(string $listenerName, string $className)

Parameters

string $listenerName
string $className

Return Value

MappingException

static MappingException entityListenerMethodNotFound(string $listenerName, string $methodName, string $className)

Parameters

string $listenerName
string $methodName
string $className

Return Value

MappingException

static MappingException duplicateEntityListener(string $listenerName, string $methodName, string $className)

Parameters

string $listenerName
string $methodName
string $className

Return Value

MappingException

static MappingException invalidFetchMode(string $className, string $annotation)

Parameters

string $className
string $annotation

Return Value

MappingException

static MappingException compositeKeyAssignedIdGeneratorRequired(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException invalidTargetEntityClass(string $targetEntity, string $sourceEntity, string $associationName)

Parameters

string $targetEntity
string $sourceEntity
string $associationName

Return Value

MappingException

static MappingException invalidCascadeOption(array $cascades, string $className, string $propertyName)

Parameters

array $cascades
string $className
string $propertyName

Return Value

MappingException

static MappingException missingSequenceName(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException infiniteEmbeddableNesting(string $className, string $propertyName)

Parameters

string $className
string $propertyName

Return Value

MappingException