PHP Class Doctrine\ODM\MongoDB\Mapping\MappingException

Since: 1.0
Author: Jonathan H. Wage ([email protected])
Inheritance: extends Doctrine\Common\Persistence\Mapping\MappingException
Mostra file Open project: doctrine/mongodb-odm Class Usage Examples

Public Methods

Method Description
atomicCollectionStrategyNotAllowed ( string $strategy, string $className, string $fieldName ) : MappingException
cannotLookupNonIdReference ( string $className, string $fieldName ) : MappingException
cannotUseShardedCollectionInOutStage ( string $className ) : MappingException
cascadeOnEmbeddedNotAllowed ( string $className, string $fieldName ) : MappingException
classIsNotAValidDocument ( string $className ) : MappingException
classIsNotAValidGenerator ( string $className ) : MappingException
collectionClassDoesNotImplementCommonInterface ( string $className, string $fieldName, string $collectionClass ) : MappingException
discriminatorFieldConflict ( string $document, string $fieldName ) : MappingException
duplicateFieldMapping ( string $document, string $fieldName ) : MappingException
embeddedDocumentCantHaveShardKey ( $className ) : MappingException
identifierRequired ( string $documentName ) : MappingException
invalidClassInDiscriminatorMap ( string $className, string $owningClass ) : MappingException Throws an exception that indicates that a class used in a discriminator map does not exist.
invalidDiscriminatorValue ( string $value, string $owningClass ) : MappingException Throws an exception that indicates a discriminator value does not exist in a map
invalidStorageStrategy ( string $className, string $fieldName, string $type, string $strategy ) : MappingException
mappingNotFound ( string $className, string $fieldName ) : MappingException
mappingNotFoundByDbName ( string $className, string $dbFieldName ) : MappingException
mappingNotFoundInClassNorDescendants ( string $className, string $fieldName ) : MappingException
missingFieldName ( string $className ) : MappingException
missingGeneratorSetter ( string $className, string $optionName ) : MappingException
missingIdGeneratorClass ( string $className ) : MappingException
missingIdentifierField ( string $className, string $fieldName ) : MappingException
mustNotChangeIdentifierFieldsType ( string $className, string $fieldName ) : MappingException
noMultiKeyShardKeys ( $className, $fieldName ) : MappingException
onlySetStrategyAllowedInShardKey ( string $className, string $fieldName ) : MappingException
owningAndInverseReferencesRequireTargetDocument ( string $className, string $fieldName ) : MappingException
referenceFieldConflict ( $fieldName, $className, $className2 ) : MappingException
referenceManySortMustNotBeUsedWithNonSetCollectionStrategy ( string $className, string $fieldName, string $strategy ) : MappingException
referenceMappingNotFound ( string $className, string $fieldName ) : MappingException
reflectionFailure ( string $document, ReflectionException $previousException ) : MappingException Exception for reflection exceptions - adds the document name, because there might be long classnames that will be shortened within the stacktrace
repositoryMethodLookupNotAllowed ( string $className, string $fieldName ) : MappingException
shardKeyInSingleCollInheritanceSubclass ( $subclassName ) : MappingException
simpleReferenceMustNotTargetDiscriminatedDocument ( string $targetDocument ) : MappingException
simpleReferenceRequiresTargetDocument ( string $className, string $fieldName ) : MappingException
typeExists ( string $name ) : MappingException
typeNotFound ( string $name ) : MappingException

Method Details

atomicCollectionStrategyNotAllowed() public static method

public static atomicCollectionStrategyNotAllowed ( string $strategy, string $className, string $fieldName ) : MappingException
$strategy string
$className string
$fieldName string
return MappingException

cannotLookupNonIdReference() public static method

public static cannotLookupNonIdReference ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
return MappingException

cannotUseShardedCollectionInOutStage() public static method

public static cannotUseShardedCollectionInOutStage ( string $className ) : MappingException
$className string
return MappingException

cascadeOnEmbeddedNotAllowed() public static method

public static cascadeOnEmbeddedNotAllowed ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
return MappingException

classIsNotAValidDocument() public static method

public static classIsNotAValidDocument ( string $className ) : MappingException
$className string
return MappingException

classIsNotAValidGenerator() public static method

public static classIsNotAValidGenerator ( string $className ) : MappingException
$className string
return MappingException

collectionClassDoesNotImplementCommonInterface() public static method

public static collectionClassDoesNotImplementCommonInterface ( string $className, string $fieldName, string $collectionClass ) : MappingException
$className string
$fieldName string
$collectionClass string
return MappingException

discriminatorFieldConflict() public static method

public static discriminatorFieldConflict ( string $document, string $fieldName ) : MappingException
$document string
$fieldName string
return MappingException

duplicateFieldMapping() public static method

public static duplicateFieldMapping ( string $document, string $fieldName ) : MappingException
$document string
$fieldName string
return MappingException

embeddedDocumentCantHaveShardKey() public static method

public static embeddedDocumentCantHaveShardKey ( $className ) : MappingException
$className
return MappingException

identifierRequired() public static method

public static identifierRequired ( string $documentName ) : MappingException
$documentName string
return MappingException

invalidClassInDiscriminatorMap() public static method

An example would be an outdated (maybe renamed) classname.
public static invalidClassInDiscriminatorMap ( string $className, string $owningClass ) : MappingException
$className string The class that could not be found
$owningClass string The class that declares the discriminator map.
return MappingException

invalidDiscriminatorValue() public static method

Throws an exception that indicates a discriminator value does not exist in a map
public static invalidDiscriminatorValue ( string $value, string $owningClass ) : MappingException
$value string The discriminator value that could not be found
$owningClass string The class that declares the discriminator map
return MappingException

invalidStorageStrategy() public static method

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

mappingNotFound() public static method

public static mappingNotFound ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
return MappingException

mappingNotFoundByDbName() public static method

public static mappingNotFoundByDbName ( string $className, string $dbFieldName ) : MappingException
$className string
$dbFieldName string
return MappingException

mappingNotFoundInClassNorDescendants() public static method

public static mappingNotFoundInClassNorDescendants ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
return MappingException

missingFieldName() public static method

public static missingFieldName ( string $className ) : MappingException
$className string
return MappingException

missingGeneratorSetter() public static method

public static missingGeneratorSetter ( string $className, string $optionName ) : MappingException
$className string
$optionName string
return MappingException

missingIdGeneratorClass() public static method

public static missingIdGeneratorClass ( string $className ) : MappingException
$className string
return MappingException

missingIdentifierField() public static method

public static missingIdentifierField ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
return MappingException

mustNotChangeIdentifierFieldsType() public static method

public static mustNotChangeIdentifierFieldsType ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
return MappingException

noMultiKeyShardKeys() public static method

public static noMultiKeyShardKeys ( $className, $fieldName ) : MappingException
$className
$fieldName
return MappingException

onlySetStrategyAllowedInShardKey() public static method

public static onlySetStrategyAllowedInShardKey ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
return MappingException

owningAndInverseReferencesRequireTargetDocument() public static method

public static owningAndInverseReferencesRequireTargetDocument ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
return MappingException

referenceFieldConflict() public static method

public static referenceFieldConflict ( $fieldName, $className, $className2 ) : MappingException
$fieldName
$className
$className2
return MappingException

referenceManySortMustNotBeUsedWithNonSetCollectionStrategy() public static method

public static referenceManySortMustNotBeUsedWithNonSetCollectionStrategy ( string $className, string $fieldName, string $strategy ) : MappingException
$className string
$fieldName string
$strategy string
return MappingException

referenceMappingNotFound() public static method

public static referenceMappingNotFound ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
return MappingException

reflectionFailure() public static method

Exception for reflection exceptions - adds the document name, because there might be long classnames that will be shortened within the stacktrace
public static reflectionFailure ( string $document, ReflectionException $previousException ) : MappingException
$document string The document's name
$previousException ReflectionException
return MappingException

repositoryMethodLookupNotAllowed() public static method

public static repositoryMethodLookupNotAllowed ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
return MappingException

shardKeyInSingleCollInheritanceSubclass() public static method

public static shardKeyInSingleCollInheritanceSubclass ( $subclassName ) : MappingException
$subclassName
return MappingException

simpleReferenceMustNotTargetDiscriminatedDocument() public static method

public static simpleReferenceMustNotTargetDiscriminatedDocument ( string $targetDocument ) : MappingException
$targetDocument string
return MappingException

simpleReferenceRequiresTargetDocument() public static method

public static simpleReferenceRequiresTargetDocument ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
return MappingException

typeExists() public static method

public static typeExists ( string $name ) : MappingException
$name string
return MappingException

typeNotFound() public static method

public static typeNotFound ( string $name ) : MappingException
$name string
return MappingException