public function deleteVersion($contentId, $versionNo)
    {
        $versionInfo = $this->loadVersionInfo($contentId, $versionNo);

        $this->locationGateway->deleteNodeAssignment($contentId, $versionNo);

        $this->fieldHandler->deleteFields($contentId, $versionInfo);

        $this->contentGateway->deleteRelations($contentId, $versionNo);
        $this->contentGateway->deleteVersions($contentId, $versionNo);
        $this->contentGateway->deleteNames($contentId, $versionNo);
    }
public function deleteVersion($contentId, $versionNo)
    {
        $versionInfo = $this->loadVersionInfo($contentId, $versionNo);

        $this->locationGateway->deleteNodeAssignment($contentId, $versionNo);

        $this->fieldHandler->deleteFields($contentId, $versionInfo);

        $this->contentGateway->deleteRelations($contentId, $versionNo);
        $this->contentGateway->deleteVersions($contentId, $versionNo);
        $this->contentGateway->deleteNames($contentId, $versionNo);
    }
public function deleteVersion ( $ contentId , $ versionNo ) { $ versionInfo = $ this -> loadVersionInfo ( $ contentId , $ versionNo ) ; $ this -> locationGateway -> deleteNodeAssignment ( $ contentId , $ versionNo ) ; $ this -> fieldHandler -> deleteFields ( $ contentId , $ versionInfo ) ; $ this -> contentGateway -> deleteRelations ( $ contentId , $ versionNo ) ; $ this -> contentGateway -> deleteVersions ( $ contentId , $ versionNo ) ; $ this -> contentGateway -> deleteNames ( $ contentId , $ versionNo ) ; }
Deletes given version, its fields, node assignment, relations and names.

Removes the relations, but not the related objects.

@param int $contentId
@param int $versionNo

@return bool
Deletes given version its fields node assignment relations and names .