eZ\Publish\Core\SignalSlot\ContentService::deleteRelation PHP Method

deleteRelation() public method

Removes a relation of type COMMON from a draft.
public deleteRelation ( eZ\Publish\API\Repository\Values\Content\VersionInfo $sourceVersion, eZ\Publish\API\Repository\Values\Content\ContentInfo $destinationContent )
$sourceVersion eZ\Publish\API\Repository\Values\Content\VersionInfo
$destinationContent eZ\Publish\API\Repository\Values\Content\ContentInfo
    public function deleteRelation(VersionInfo $sourceVersion, ContentInfo $destinationContent)
    {
        $returnValue = $this->service->deleteRelation($sourceVersion, $destinationContent);
        $this->signalDispatcher->emit(new DeleteRelationSignal(array('srcContentId' => $sourceVersion->contentInfo->id, 'srcVersionNo' => $sourceVersion->versionNo, 'dstContentId' => $destinationContent->id)));
        return $returnValue;
    }