class MappingException extends LogicException implements ORMException (View source)

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

Methods

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.

invalidOverridePropertyType(string $className, string $fieldName)

Exception for invalid property type override.

invalidOverrideVersionField(string $className, string $fieldName)

Exception for invalid version property 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

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($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

duplicateProperty($className, Property $property)

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 $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.

missingDiscriminatorMap(string $className)

No description

missingDiscriminatorColumn(string $className)

No description

invalidDiscriminatorColumnType(string $type)

No description

nameIsMandatoryForDiscriminatorColumns(string $className)

No description

cannotVersionIdField(string $className, string $fieldName)

No description

sqlConversionNotAllowedForPrimaryKeyProperties($className, Property $property)

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

static 
classNotFoundInNamespaces(string $className, array $namespaces)

No description

Details

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 invalidOverridePropertyType(string $className, string $fieldName)

Exception for invalid property type override.

Parameters

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

Return Value

MappingException

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

Exception for invalid version property 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 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($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

$entity
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 duplicateProperty($className, Property $property)

Parameters

$className
Property $property

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 $unsupportedType)

Parameters

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 missingDiscriminatorMap(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException missingDiscriminatorColumn(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException invalidDiscriminatorColumnType(string $type)

Parameters

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 sqlConversionNotAllowedForPrimaryKeyProperties($className, Property $property)

Parameters

$className
Property $property

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

static classNotFoundInNamespaces(string $className, array $namespaces)

Parameters

string $className
array $namespaces