class DocumentNotFoundException extends MongoDBException (View source)

Class for exception when encountering proxy object that has an identifier that does not exist in the database.

Methods

invalidFindByCall(string $documentName, string $fieldName, string $method)

No description

invalidDocumentState(string $state)

No description

documentNotMappedToCollection(string $className)

No description

findByRequiresParameter(string $methodName)

No description

unknownDocumentNamespace(string $documentNamespaceAlias)

No description

cannotPersistMappedSuperclass(string $className)

No description

queryNotIndexed(string $className, string $unindexedFields)

No description

invalidDocumentRepository(string $className)

No description

invalidValueForType(string $type, string|array $expected, mixed $got)

No description

shardKeyFieldCannotBeChanged(string $field, string $className)

No description

shardKeyFieldMissing(string $field, string $className)

No description

failedToEnableSharding(string $dbName, string $errorMessage)

No description

failedToEnsureDocumentSharding(string $className, string $errorMessage)

No description

static 
documentNotFound($className, $identifier)

No description

Details

static MongoDBException invalidFindByCall(string $documentName, string $fieldName, string $method)

Parameters

string $documentName
string $fieldName
string $method

Return Value

MongoDBException

static MongoDBException detachedDocumentCannotBeRemoved()

Return Value

MongoDBException

static MongoDBException invalidDocumentState(string $state)

Parameters

string $state

Return Value

MongoDBException

static MongoDBException documentNotMappedToCollection(string $className)

Parameters

string $className

Return Value

MongoDBException

static MongoDBException documentManagerClosed()

Return Value

MongoDBException

static MongoDBException findByRequiresParameter(string $methodName)

Parameters

string $methodName

Return Value

MongoDBException

static MongoDBException unknownDocumentNamespace(string $documentNamespaceAlias)

Parameters

string $documentNamespaceAlias

Return Value

MongoDBException

static MongoDBException cannotPersistMappedSuperclass(string $className)

Parameters

string $className

Return Value

MongoDBException

static MongoDBException queryNotIndexed(string $className, string $unindexedFields)

Parameters

string $className
string $unindexedFields

Return Value

MongoDBException

static MongoDBException invalidDocumentRepository(string $className)

Parameters

string $className

Return Value

MongoDBException

static MongoDBException invalidValueForType(string $type, string|array $expected, mixed $got)

Parameters

string $type
string|array $expected
mixed $got

Return Value

MongoDBException

static MongoDBException shardKeyFieldCannotBeChanged(string $field, string $className)

Parameters

string $field
string $className

Return Value

MongoDBException

static MongoDBException shardKeyFieldMissing(string $field, string $className)

Parameters

string $field
string $className

Return Value

MongoDBException

static MongoDBException failedToEnableSharding(string $dbName, string $errorMessage)

Parameters

string $dbName
string $errorMessage

Return Value

MongoDBException

static MongoDBException failedToEnsureDocumentSharding(string $className, string $errorMessage)

Parameters

string $className
string $errorMessage

Return Value

MongoDBException

static documentNotFound($className, $identifier)

Parameters

$className
$identifier