src/snac/server/ServerExecutor.php
/**
     * Merge ResourceS
     *
     * Transfer all resource relations from victim resource to target, and delete the victim resource.
     *
     * @param int $victimID Id of the resource to be deleted
     * @param int $targetID Id of the resource to be kept
     */
Merge ResourceS
Transfer all resource relations from victim resource to target, and delete the victim resource.

@param int $victimID Id of the resource to be deleted
@param int $targetID Id of the resource to be kept
Merge ResourceS Transfer all resource relations from victim resource to target and delete the victim resource . @param int $victimID Id of the resource to be deleted @param int $targetID Id of the resource to be kept
public function mergeResources($victimID, $targetID) {
        $victim = $this->cStore->readResource($victimID);
        $target = $this->cStore->readResource($targetID);
        $this->neo4J->mergeResource($victim, $target);
        $this->cStore->replaceResourceRelationResource($victim, $target);
        $this->cStore->deleteDuplicateResourceRelations($target);
        $this->deleteResource($victim);
    }
public function mergeResources ( $ victimID , $ targetID ) { $ victim = $ this -> cStore -> readResource ( $ victimID ) ; $ target = $ this -> cStore -> readResource ( $ targetID ) ; $ this -> neo4J -> mergeResource ( $ victim , $ target ) ; $ this -> cStore -> replaceResourceRelationResource ( $ victim , $ target ) ; $ this -> cStore -> deleteDuplicateResourceRelations ( $ target ) ; $ this -> deleteResource ( $ victim ) ; }
Merge ResourceS
 Transfer all resource relations from victim resource to target, and delete the victim resource.
Merge ResourceS Transfer all resource relations from victim resource to target and delete the victim resource .
// Replace victim's id and version with target's in related_resource. // Delete any resourceRelations that are now exact duplicates