/** * Removes a relation of type COMMON from a draft. * * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed edit this version * @throws \eZ\Publish\API\Repository\Exceptions\BadStateException if the version is not a draft * @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException if there is no relation of type COMMON for the given destination * * @param \eZ\Publish\API\Repository\Values\Content\VersionInfo $sourceVersion * @param \eZ\Publish\API\Repository\Values\Content\ContentInfo $destinationContent */ 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; }