public addRelation ( integer $relationType, eZ\Publish\API\Repository\Values\Content\VersionInfo $sourceVersion, mixed $destinationContentId, eZ\Publish\API\Repository\Values\ContentType\FieldDefinition $fieldDefinition = null ) : eZ\Publish\API\Repository\Values\Content\Relation | ||
$relationType | integer | One of Relation::COMMON, Relation::EMBED, Relation::LINK or Relation::FIELD |
$sourceVersion | eZ\Publish\API\Repository\Values\Content\VersionInfo | |
$destinationContentId | mixed | |
$fieldDefinition | eZ\Publish\API\Repository\Values\ContentType\FieldDefinition | |
return | eZ\Publish\API\Repository\Values\Content\Relation | The newly created relation |
public function addRelation($relationType, VersionInfo $sourceVersion, $destinationContentId, FieldDefinition $fieldDefinition = null)
{
// @todo Figure out if this is needed or not, there is a need for it in xmltext and relation field types to avoid using db directly for this
throw new NotImplementedException(__METHOD__ . ' not implemented, & unclear if it should as relation handing is done in gateways in relation field types');
}