Doctrine


Doctrine\ORM\Mapping\MappingException
/Doctrine/ORM/Mapping/MappingException.php at line 29

Class MappingException

Class:MappingException - Superclass: Doctrine
Doctrine
⌊ MappingException

public class MappingException
extends Doctrine

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

Since:
2.0

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

fileMappingDriversRequireConfiguredDirectoryPath()

static void

generatorNotAllowedWithCompositeId()

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

missingFieldName()

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

pathRequired()

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)

Method Detail

/Doctrine/ORM/Mapping/MappingException.php at line 137

classIsNotAValidEntityOrMappedSuperClass

public static void classIsNotAValidEntityOrMappedSuperClass(mixed className)

/Doctrine/ORM/Mapping/MappingException.php at line 161

duplicateAssociationMapping

public static void duplicateAssociationMapping(mixed entity, mixed fieldName)

/Doctrine/ORM/Mapping/MappingException.php at line 200

duplicateColumnName

public static self duplicateColumnName(string className, string columnName)


/Doctrine/ORM/Mapping/MappingException.php at line 157

duplicateFieldMapping

public static void duplicateFieldMapping(string entity, string fieldName)

Parameters:
entity - The entity's name
fieldName - The name of the field that was already declared

/Doctrine/ORM/Mapping/MappingException.php at line 175

fileMappingDriversRequireConfiguredDirectoryPath

public static void fileMappingDriversRequireConfiguredDirectoryPath()

/Doctrine/ORM/Mapping/MappingException.php at line 48

generatorNotAllowedWithCompositeId

public static void generatorNotAllowedWithCompositeId()

/Doctrine/ORM/Mapping/MappingException.php at line 37

identifierRequired

public static void identifierRequired(mixed entityName)

/Doctrine/ORM/Mapping/MappingException.php at line 188

invalidClassInDiscriminatorMap

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.

Parameters:
className - The class that could not be found
owningClass - The class that declares the discriminator map.

/Doctrine/ORM/Mapping/MappingException.php at line 43

invalidInheritanceType

public static void invalidInheritanceType(mixed entityName, mixed type)

/Doctrine/ORM/Mapping/MappingException.php at line 113

invalidMapping

public static void invalidMapping(string fieldName)

Generic exception for invalid mappings.


/Doctrine/ORM/Mapping/MappingException.php at line 131

joinColumnMustPointToMappedField

public static void joinColumnMustPointToMappedField(mixed className, mixed joinColumn)

/Doctrine/ORM/Mapping/MappingException.php at line 83

joinTableRequired

public static void joinTableRequired(mixed fieldName)

/Doctrine/ORM/Mapping/MappingException.php at line 68

mappingFileNotFound

public static void mappingFileNotFound(mixed entityName, mixed fileName)

/Doctrine/ORM/Mapping/MappingException.php at line 73

mappingNotFound

public static void mappingNotFound(mixed fieldName)

/Doctrine/ORM/Mapping/MappingException.php at line 53

missingFieldName

public static void missingFieldName()

/Doctrine/ORM/Mapping/MappingException.php at line 97

missingRequiredOption

public static MappingException missingRequiredOption(string field, string expectedOption, string hint)

Called if a required option was not found but is required

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

/Doctrine/ORM/Mapping/MappingException.php at line 63

missingSourceEntity

public static void missingSourceEntity(mixed fieldName)

/Doctrine/ORM/Mapping/MappingException.php at line 58

missingTargetEntity

public static void missingTargetEntity(mixed fieldName)

/Doctrine/ORM/Mapping/MappingException.php at line 78

oneToManyRequiresMappedBy

public static void oneToManyRequiresMappedBy(mixed fieldName)

/Doctrine/ORM/Mapping/MappingException.php at line 31

pathRequired

public static void pathRequired()

/Doctrine/ORM/Mapping/MappingException.php at line 142

propertyTypeIsRequired

public static void propertyTypeIsRequired(mixed className, mixed propertyName)

/Doctrine/ORM/Mapping/MappingException.php at line 126

reflectionFailure

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

Parameters:
entity - The entity's name

/Doctrine/ORM/Mapping/MappingException.php at line 165

singleIdNotAllowedOnCompositePrimaryKey

public static void singleIdNotAllowedOnCompositePrimaryKey(mixed entity)

/Doctrine/ORM/Mapping/MappingException.php at line 147

tableIdGeneratorNotImplemented

public static void tableIdGeneratorNotImplemented(mixed className)

/Doctrine/ORM/Mapping/MappingException.php at line 169

unsupportedOptimisticLockingType

public static void unsupportedOptimisticLockingType(mixed entity, mixed fieldName, mixed unsupportedType)

Doctrine