lib/Doctrine/ODM/MongoDB/SchemaManager.php
public function createDocumentDatabase($documentName)
    {
        $class = $this->dm->getClassMetadata($documentName);
        if ($class->isMappedSuperclass || $class->isEmbeddedDocument) {
            throw new \InvalidArgumentException('Cannot delete document indexes for mapped super classes or embedded documents.');
        }
        $this->dm->getDocumentDatabase($documentName)->execute("function() { return true; }");
    }
public function createDocumentDatabase($documentName)
    {
        $class = $this->dm->getClassMetadata($documentName);
        if ($class->isMappedSuperclass || $class->isEmbeddedDocument) {
            throw new \InvalidArgumentException('Cannot delete document indexes for mapped super classes or embedded documents.');
        }
        $this->dm->getDocumentDatabase($documentName)->execute("function() { return true; }");
    }
public function createDocumentDatabase ( $ documentName ) { $ class = $ this -> dm -> getClassMetadata ( $ documentName ) ; if ( $ class -> isMappedSuperclass || $ class -> isEmbeddedDocument ) { throw new \ InvalidArgumentException ( 'Cannot delete document indexes for mapped super classes or embedded documents.' ) ; } $ this -> dm -> getDocumentDatabase ( $ documentName ) -> execute ( "function() { return true; }" ) ; }
Create the document database for a mapped class.

@param string $documentName
@throws \InvalidArgumentException
Create the document database for a mapped class .