MappingException
class MappingException extends LogicException implements ORMException (View source)
A MappingException indicates that something is wrong with the mapping setup.
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
Exception for invalid property name override.
Exception for invalid property type override.
Exception for invalid version property override.
Exception for invalid property type override.
No description
No description
No description
No description
No description
No description
No description
No description
No description
Called if a required option was not found but is required
Generic exception for invalid mappings.
Exception for reflection exceptions - adds the entity name, because there might be long classnames that will be shortened within the stacktrace
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Returns an exception that indicates that a class used in a discriminator map does not exist.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 24
static MappingException
pathRequired()
at line 35
static MappingException
identifierRequired(string $entityName)
at line 59
static MappingException
invalidInheritanceType(string $entityName, string $type)
at line 67
static MappingException
generatorNotAllowedWithCompositeId()
at line 77
static MappingException
missingFieldName(string $entity)
at line 87
static MappingException
missingTargetEntity(string $fieldName)
at line 97
static MappingException
missingSourceEntity(string $fieldName)
at line 107
static MappingException
missingEmbeddedClass(string $fieldName)
at line 118
static MappingException
mappingFileNotFound(string $entityName, string $fileName)
at line 131
static MappingException
invalidOverrideFieldName(string $className, string $fieldName)
Exception for invalid property name override.
at line 144
static MappingException
invalidOverridePropertyType(string $className, string $fieldName)
Exception for invalid property type override.
at line 157
static MappingException
invalidOverrideVersionField(string $className, string $fieldName)
Exception for invalid version property override.
at line 170
static MappingException
invalidOverrideFieldType(string $className, string $fieldName)
Exception for invalid property type override.
at line 181
static MappingException
mappingNotFound(string $className, string $fieldName)
at line 192
static MappingException
queryNotFound(string $className, string $queryName)
at line 203
static MappingException
resultMappingNotFound(string $className, string $resultName)
at line 214
static MappingException
missingQueryMapping(string $entity, string $queryName)
at line 225
static MappingException
missingResultSetMappingEntity(string $entity, string $resultName)
at line 236
static MappingException
missingResultSetMappingFieldName(string $entity, string $resultName)
at line 246
static MappingException
nameIsMandatoryForSqlResultSetMapping(string $className)
at line 256
static MappingException
oneToManyRequiresMappedBy(string $fieldName)
at line 266
static MappingException
joinTableRequired(string $fieldName)
at line 281
static MappingException
missingRequiredOption(string $field, string $expectedOption, string $hint = '')
Called if a required option was not found but is required
at line 299
static MappingException
invalidMapping(string $fieldName)
Generic exception for invalid mappings.
at line 313
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
at line 324
static MappingException
joinColumnMustPointToMappedField(string $className, string $joinColumn)
at line 335
static MappingException
classIsNotAValidEntityOrMappedSuperClass(string $className)
at line 359
static MappingException
propertyTypeIsRequired(string $className, string $propertyName)
at line 369
static MappingException
tableIdGeneratorNotImplemented(string $className)
at line 379
static MappingException
duplicateProperty($className, Property $property)
at line 395
static MappingException
duplicateQueryMapping(string $entity, string $queryName)
at line 406
static MappingException
duplicateResultSetMapping(string $entity, string $resultName)
at line 416
static MappingException
singleIdNotAllowedOnCompositePrimaryKey(string $entity)
at line 426
static MappingException
noIdDefined(string $entity)
at line 436
static MappingException
unsupportedOptimisticLockingType(Type $unsupportedType)
at line 446
static MappingException
fileMappingDriversRequireConfiguredDirectoryPath(string|null $path = null)
at line 467
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.