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 |
|
Résultat |
eZ\Publish\API\Repository\Values\Content\Relation |
The newly created relation |