class MappingException extends MappingException (View source)

Class for all exceptions related to the Doctrine MongoDB ODM

Methods

typeExists(string $name)

No description

typeNotFound(string $name)

No description

mappingNotFound(string $className, string $fieldName)

No description

duplicateFieldMapping(string $document, string $fieldName)

No description

discriminatorFieldConflict(string $document, string $fieldName)

No description

invalidClassInDiscriminatorMap(string $className, string $owningClass)

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

invalidDiscriminatorValue(string $value, string $owningClass)

Throws an exception that indicates a discriminator value does not exist in a map

missingFieldName(string $className)

No description

classIsNotAValidDocument(string $className)

No description

reflectionFailure(string $document, ReflectionException $previousException)

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

identifierRequired(string $documentName)

No description

missingIdentifierField(string $className, string $fieldName)

No description

missingIdGeneratorClass(string $className)

No description

classIsNotAValidGenerator(string $className)

No description

missingGeneratorSetter(string $className, string $optionName)

No description

cascadeOnEmbeddedNotAllowed(string $className, string $fieldName)

No description

simpleReferenceRequiresTargetDocument(string $className, string $fieldName)

No description

simpleReferenceMustNotTargetDiscriminatedDocument(string $targetDocument)

No description

atomicCollectionStrategyNotAllowed(string $strategy, string $className, string $fieldName)

No description

owningAndInverseReferencesRequireTargetDocument(string $className, string $fieldName)

No description

mustNotChangeIdentifierFieldsType(string $className, string $fieldName)

No description

referenceManySortMustNotBeUsedWithNonSetCollectionStrategy(string $className, string $fieldName, string $strategy)

No description

Details

static MappingException typeExists(string $name)

Parameters

string $name

Return Value

MappingException

static MappingException typeNotFound(string $name)

Parameters

string $name

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

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

Parameters

string $document
string $fieldName

Return Value

MappingException

static MappingException discriminatorFieldConflict(string $document, string $fieldName)

Parameters

string $document
string $fieldName

Return Value

MappingException

static MappingException 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

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

Return Value

MappingException

static MappingException invalidDiscriminatorValue(string $value, string $owningClass)

Throws an exception that indicates a discriminator value does not exist in a map

Parameters

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

Return Value

MappingException

static MappingException missingFieldName(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException classIsNotAValidDocument(string $className)

Parameters

string $className

Return Value

MappingException

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

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

Parameters

string $document The document's name
ReflectionException $previousException

Return Value

MappingException

static MappingException identifierRequired(string $documentName)

Parameters

string $documentName

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

static MappingException missingIdGeneratorClass(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException classIsNotAValidGenerator(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException missingGeneratorSetter(string $className, string $optionName)

Parameters

string $className
string $optionName

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

static MappingException simpleReferenceMustNotTargetDiscriminatedDocument(string $targetDocument)

Parameters

string $targetDocument

Return Value

MappingException

static MappingException atomicCollectionStrategyNotAllowed(string $strategy, string $className, string $fieldName)

Parameters

string $strategy
string $className
string $fieldName

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

static MappingException referenceManySortMustNotBeUsedWithNonSetCollectionStrategy(string $className, string $fieldName, string $strategy)

Parameters

string $className
string $fieldName
string $strategy

Return Value

MappingException