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

referenceMappingNotFound(string $className, string $fieldName)

No description

mappingNotFoundInClassNorDescendants(string $className, string $fieldName)

No description

referenceFieldConflict(string $fieldName, string $className, string $className2)

No description

mappingNotFoundByDbName(string $className, string $dbFieldName)

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

invalidStorageStrategy(string $className, string $fieldName, string $type, string $strategy)

No description

collectionClassDoesNotImplementCommonInterface(string $className, string $fieldName, string $collectionClass)

No description

shardKeyInSingleCollInheritanceSubclass(string $subclassName)

No description

embeddedDocumentCantHaveShardKey(string $className)

No description

onlySetStrategyAllowedInShardKey(string $className, string $fieldName)

No description

noMultiKeyShardKeys(string $className, string $fieldName)

No description

cannotLookupDbRefReference(string $className, string $fieldName)

No description

repositoryMethodLookupNotAllowed(string $className, string $fieldName)

No description

cannotUseShardedCollectionInOutStage(string $className)

No description

cannotUseShardedCollectionInLookupStages(string $className)

No description

referencePrimersOnlySupportedForInverseReferenceMany(string $className, string $fieldName)

No description

static 
connectFromFieldMustReferenceSameDocument($fieldName)

No description

static 
repositoryMethodCanNotBeCombinedWithSkipLimitAndSort($className, $fieldName)

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

Parameters

string $className
string $fieldName

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

static MappingException referenceFieldConflict(string $fieldName, string $className, string $className2)

Parameters

string $fieldName
string $className
string $className2

Return Value

MappingException

static MappingException mappingNotFoundByDbName(string $className, string $dbFieldName)

Parameters

string $className
string $dbFieldName

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

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

static MappingException invalidStorageStrategy(string $className, string $fieldName, string $type, string $strategy)

Parameters

string $className
string $fieldName
string $type
string $strategy

Return Value

MappingException

static MappingException collectionClassDoesNotImplementCommonInterface(string $className, string $fieldName, string $collectionClass)

Parameters

string $className
string $fieldName
string $collectionClass

Return Value

MappingException

static MappingException shardKeyInSingleCollInheritanceSubclass(string $subclassName)

Parameters

string $subclassName

Return Value

MappingException

static MappingException embeddedDocumentCantHaveShardKey(string $className)

Parameters

string $className

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

static MappingException cannotUseShardedCollectionInOutStage(string $className)

Parameters

string $className

Return Value

MappingException

static MappingException cannotUseShardedCollectionInLookupStages(string $className)

Parameters

string $className

Return Value

MappingException

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

Parameters

string $className
string $fieldName

Return Value

MappingException

static connectFromFieldMustReferenceSameDocument($fieldName)

Parameters

$fieldName

static repositoryMethodCanNotBeCombinedWithSkipLimitAndSort($className, $fieldName)

Parameters

$className
$fieldName