public function deleteDocumentTableFor($documentName)
    {
        $class = $this->dm->getClassMetadata($documentName);

        if ($class->isMappedSuperclass || $class->isEmbeddedDocument) {
            throw ODMException::cannotDeleteMappedSuperclassTable($documentName);
        }

        $this->doDeleteTable($class->getTableName(), $class->getDefinitionTable());
    }
public function deleteDocumentTableFor($documentName)
    {
        $class = $this->dm->getClassMetadata($documentName);

        if ($class->isMappedSuperclass || $class->isEmbeddedDocument) {
            throw ODMException::cannotDeleteMappedSuperclassTable($documentName);
        }

        $this->doDeleteTable($class->getTableName(), $class->getDefinitionTable());
    }
public function deleteDocumentTableFor ( $ documentName ) { $ class = $ this -> dm -> getClassMetadata ( $ documentName ) ; if ( $ class -> isMappedSuperclass || $ class -> isEmbeddedDocument ) { throw ODMException :: cannotDeleteMappedSuperclassTable ( $ documentName ) ; } $ this -> doDeleteTable ( $ class -> getTableName ( ) , $ class -> getDefinitionTable ( ) ) ; }
Checks if the DynamoDB table for a mapped class exists, and deletes it if
it does.

@param string $documentName

@return void

@throws ODMException
Checks if the DynamoDB table for a mapped class exists and deletes it if it does .