Class:MappingException - Superclass: Doctrine Doctrine
⌊ MappingException
public class MappingException
extends Doctrine
Method Summary | |
---|---|
static void | classIsNotAValidEntityOrMappedSuperClass(mixed className) |
static void | duplicateAssociationMapping(mixed entity, mixed fieldName) |
static self | duplicateColumnName(string className, string columnName) |
static void | duplicateFieldMapping(string entity, string fieldName) |
static void | |
static void | |
static void | identifierRequired(mixed entityName) |
static self | invalidClassInDiscriminatorMap(string className, string owningClass) Throws an exception that indicates that a class used in a discriminator map does not exist. |
static void | invalidInheritanceType(mixed entityName, mixed type) |
static void | invalidMapping(string fieldName) Generic exception for invalid mappings. |
static void | joinColumnMustPointToMappedField(mixed className, mixed joinColumn) |
static void | joinTableRequired(mixed fieldName) |
static void | mappingFileNotFound(mixed entityName, mixed fileName) |
static void | mappingNotFound(mixed fieldName) |
static void | |
static MappingException | missingRequiredOption(string field, string expectedOption, string hint) Called if a required option was not found but is required |
static void | missingSourceEntity(mixed fieldName) |
static void | missingTargetEntity(mixed fieldName) |
static void | oneToManyRequiresMappedBy(mixed fieldName) |
static void | |
static void | propertyTypeIsRequired(mixed className, mixed propertyName) |
static void | 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 |
static void | singleIdNotAllowedOnCompositePrimaryKey(mixed entity) |
static void | tableIdGeneratorNotImplemented(mixed className) |
static void | unsupportedOptimisticLockingType(mixed entity, mixed fieldName, mixed unsupportedType) |
public static void classIsNotAValidEntityOrMappedSuperClass(mixed className)
public static void duplicateAssociationMapping(mixed entity, mixed fieldName)
public static self duplicateColumnName(string className, string columnName)
public static void duplicateFieldMapping(string entity, string fieldName)
public static void fileMappingDriversRequireConfiguredDirectoryPath()
public static void generatorNotAllowedWithCompositeId()
public static void identifierRequired(mixed entityName)
public static self invalidClassInDiscriminatorMap(string className, string owningClass)
Throws an exception that indicates that a class used in a discriminator map does not exist. An example would be an outdated (maybe renamed) classname.
public static void invalidInheritanceType(mixed entityName, mixed type)
public static void invalidMapping(string fieldName)
Generic exception for invalid mappings.
public static void joinColumnMustPointToMappedField(mixed className, mixed joinColumn)
public static void joinTableRequired(mixed fieldName)
public static void mappingFileNotFound(mixed entityName, mixed fileName)
public static void mappingNotFound(mixed fieldName)
public static void missingFieldName()
public static MappingException missingRequiredOption(string field, string expectedOption, string hint)
Called if a required option was not found but is required
public static void missingSourceEntity(mixed fieldName)
public static void missingTargetEntity(mixed fieldName)
public static void oneToManyRequiresMappedBy(mixed fieldName)
public static void pathRequired()
public static void propertyTypeIsRequired(mixed className, mixed propertyName)
public static void 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
public static void singleIdNotAllowedOnCompositePrimaryKey(mixed entity)
public static void tableIdGeneratorNotImplemented(mixed className)
public static void unsupportedOptimisticLockingType(mixed entity, mixed fieldName, mixed unsupportedType)
A MappingException indicates that something is wrong with the mapping setup.