Méthode |
Description |
|
__construct ( DocumentManager $dm, ClassMetadataFactory $cmf ) |
|
|
createCollections ( ) |
Create all the mapped document collections in the metadata factory. |
|
createDatabases ( ) |
Create all the mapped document databases in the metadata factory. |
|
createDocumentCollection ( string $documentName ) |
Create the document collection for a mapped class. |
|
createDocumentDatabase ( string $documentName ) |
Create the document database for a mapped class. |
|
deleteDocumentIndexes ( string $documentName ) |
Delete the given document's indexes. |
|
deleteIndexes ( ) |
Delete indexes for all documents that can be loaded with the
metadata factory. |
|
dropCollections ( ) |
Drop all the mapped document collections in the metadata factory. |
|
dropDatabases ( ) |
Drop all the mapped document databases in the metadata factory. |
|
dropDocumentCollection ( string $documentName ) |
Drop the document collection for a mapped class. |
|
dropDocumentDatabase ( string $documentName ) |
Drop the document database for a mapped class. |
|
enableShardingForDbByDocumentName ( string $documentName ) |
Enable sharding for database which contains documents with given name. |
|
ensureDocumentIndexes ( string $documentName, integer $timeout = null ) |
Ensure the given document's indexes are created. |
|
ensureDocumentSharding ( string $documentName, array $indexOptions = [] ) |
Ensure sharding for collection by document name. |
|
ensureIndexes ( integer $timeout = null ) |
Ensure indexes are created for all documents that can be loaded with the
metadata factory. |
|
ensureSharding ( array $indexOptions = [] ) |
Ensure collections are sharded for all documents that can be loaded with the
metadata factory. |
|
getDocumentIndexes ( string $documentName ) : array |
|
|
isMongoIndexEquivalentToDocumentIndex ( array $mongoIndex, array $documentIndex ) : boolean |
Determine if an index returned by MongoCollection::getIndexInfo() can be
considered equivalent to an index in class metadata. |
|
updateDocumentIndexes ( string $documentName, integer $timeout = null ) |
Ensure indexes exist for the mapped document class. |
|
updateIndexes ( integer $timeout = null ) |
Ensure indexes exist for all mapped document classes. |
|