PHP Class Doctrine\ODM\MongoDB\Mapping\MappingException

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

Méthodes publiques

Méthode 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 méthode

public static atomicCollectionStrategyNotAllowed ( string $strategy, string $className, string $fieldName ) : MappingException
$strategy string
$className string
$fieldName string
Résultat MappingException

cannotLookupNonIdReference() public static méthode

public static cannotLookupNonIdReference ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
Résultat MappingException

cannotUseShardedCollectionInOutStage() public static méthode

public static cannotUseShardedCollectionInOutStage ( string $className ) : MappingException
$className string
Résultat MappingException

cascadeOnEmbeddedNotAllowed() public static méthode

public static cascadeOnEmbeddedNotAllowed ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
Résultat MappingException

classIsNotAValidDocument() public static méthode

public static classIsNotAValidDocument ( string $className ) : MappingException
$className string
Résultat MappingException

classIsNotAValidGenerator() public static méthode

public static classIsNotAValidGenerator ( string $className ) : MappingException
$className string
Résultat MappingException

collectionClassDoesNotImplementCommonInterface() public static méthode

public static collectionClassDoesNotImplementCommonInterface ( string $className, string $fieldName, string $collectionClass ) : MappingException
$className string
$fieldName string
$collectionClass string
Résultat MappingException

discriminatorFieldConflict() public static méthode

public static discriminatorFieldConflict ( string $document, string $fieldName ) : MappingException
$document string
$fieldName string
Résultat MappingException

duplicateFieldMapping() public static méthode

public static duplicateFieldMapping ( string $document, string $fieldName ) : MappingException
$document string
$fieldName string
Résultat MappingException

embeddedDocumentCantHaveShardKey() public static méthode

public static embeddedDocumentCantHaveShardKey ( $className ) : MappingException
$className
Résultat MappingException

identifierRequired() public static méthode

public static identifierRequired ( string $documentName ) : MappingException
$documentName string
Résultat MappingException

invalidClassInDiscriminatorMap() public static méthode

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.
Résultat MappingException

invalidDiscriminatorValue() public static méthode

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
Résultat MappingException

invalidStorageStrategy() public static méthode

public static invalidStorageStrategy ( string $className, string $fieldName, string $type, string $strategy ) : MappingException
$className string
$fieldName string
$type string
$strategy string
Résultat MappingException

mappingNotFound() public static méthode

public static mappingNotFound ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
Résultat MappingException

mappingNotFoundByDbName() public static méthode

public static mappingNotFoundByDbName ( string $className, string $dbFieldName ) : MappingException
$className string
$dbFieldName string
Résultat MappingException

mappingNotFoundInClassNorDescendants() public static méthode

public static mappingNotFoundInClassNorDescendants ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
Résultat MappingException

missingFieldName() public static méthode

public static missingFieldName ( string $className ) : MappingException
$className string
Résultat MappingException

missingGeneratorSetter() public static méthode

public static missingGeneratorSetter ( string $className, string $optionName ) : MappingException
$className string
$optionName string
Résultat MappingException

missingIdGeneratorClass() public static méthode

public static missingIdGeneratorClass ( string $className ) : MappingException
$className string
Résultat MappingException

missingIdentifierField() public static méthode

public static missingIdentifierField ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
Résultat MappingException

mustNotChangeIdentifierFieldsType() public static méthode

public static mustNotChangeIdentifierFieldsType ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
Résultat MappingException

noMultiKeyShardKeys() public static méthode

public static noMultiKeyShardKeys ( $className, $fieldName ) : MappingException
$className
$fieldName
Résultat MappingException

onlySetStrategyAllowedInShardKey() public static méthode

public static onlySetStrategyAllowedInShardKey ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
Résultat MappingException

owningAndInverseReferencesRequireTargetDocument() public static méthode

public static owningAndInverseReferencesRequireTargetDocument ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
Résultat MappingException

referenceFieldConflict() public static méthode

public static referenceFieldConflict ( $fieldName, $className, $className2 ) : MappingException
$fieldName
$className
$className2
Résultat MappingException

referenceManySortMustNotBeUsedWithNonSetCollectionStrategy() public static méthode

public static referenceManySortMustNotBeUsedWithNonSetCollectionStrategy ( string $className, string $fieldName, string $strategy ) : MappingException
$className string
$fieldName string
$strategy string
Résultat MappingException

referenceMappingNotFound() public static méthode

public static referenceMappingNotFound ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
Résultat MappingException

reflectionFailure() public static méthode

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
Résultat MappingException

repositoryMethodLookupNotAllowed() public static méthode

public static repositoryMethodLookupNotAllowed ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
Résultat MappingException

shardKeyInSingleCollInheritanceSubclass() public static méthode

public static shardKeyInSingleCollInheritanceSubclass ( $subclassName ) : MappingException
$subclassName
Résultat MappingException

simpleReferenceMustNotTargetDiscriminatedDocument() public static méthode

public static simpleReferenceMustNotTargetDiscriminatedDocument ( string $targetDocument ) : MappingException
$targetDocument string
Résultat MappingException

simpleReferenceRequiresTargetDocument() public static méthode

public static simpleReferenceRequiresTargetDocument ( string $className, string $fieldName ) : MappingException
$className string
$fieldName string
Résultat MappingException

typeExists() public static méthode

public static typeExists ( string $name ) : MappingException
$name string
Résultat MappingException

typeNotFound() public static méthode

public static typeNotFound ( string $name ) : MappingException
$name string
Résultat MappingException