From 043aa14d7dedb26c479edb24cae4cfff70e969a2 Mon Sep 17 00:00:00 2001 From: Erik-Jan Westendorp Date: Wed, 3 Jan 2024 13:53:29 +0100 Subject: [PATCH 1/3] Write shorter sentences --- 13/umbraco-cms/reference/management/models/relationtype.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/13/umbraco-cms/reference/management/models/relationtype.md b/13/umbraco-cms/reference/management/models/relationtype.md index 4635852eef6..cd421f8806a 100644 --- a/13/umbraco-cms/reference/management/models/relationtype.md +++ b/13/umbraco-cms/reference/management/models/relationtype.md @@ -3,7 +3,7 @@ description: "The `RelationType` class represents a relation definition between --- # RelationType -The `RelationType` class represents a relation definition between two node types (content or media). For example keeping track of node usage across the site, in order to avoid deleting content that is used else where. When querying a relation this is done using the parent node key unless the `RelationType` is set to bidirectional in which case you can also query using the child node key. +The `RelationType` class represents a relation definition between two node types (content or media). For example keeping track of node usage across the site, in order to avoid deleting content that is used else where. When querying a relation, it is typically done using the parent node key. However, if the `RelationType` is bidirectional, querying with the child node key is also possible. * **Namespace:** `Umbraco.Cms.Core.Models` * **Assembly:** `Umbraco.Core.dll` @@ -23,7 +23,8 @@ using Umbraco.Cms.Core.Services; ### new RelationType(string name, string alias, bool isBidrectional, Guid? parentObjectType, Guid? childObjectType) -Constructor for creating a new RelationType object where the necessary parameters are the string alias and name of the relation type, a `bool` to indicate whether the relation is bidirectional, and the `Guid?` key of the child object type, parent object type the relation type will be for. + +Create a new RelationType object with this constructor. It requires a `string` alias, the relation type's name, and a `bool` for bidirectionality. Additionally, specify the `Guid?` keys for both child and parent object types involved in the relation. ## Properties From d02789eacf4da7a18a9d35932d0852b8d0773b80 Mon Sep 17 00:00:00 2001 From: Erik-Jan Westendorp Date: Wed, 3 Jan 2024 13:54:19 +0100 Subject: [PATCH 2/3] Empty line... --- 13/umbraco-cms/reference/management/models/relationtype.md | 1 - 1 file changed, 1 deletion(-) diff --git a/13/umbraco-cms/reference/management/models/relationtype.md b/13/umbraco-cms/reference/management/models/relationtype.md index cd421f8806a..82c91e3aca3 100644 --- a/13/umbraco-cms/reference/management/models/relationtype.md +++ b/13/umbraco-cms/reference/management/models/relationtype.md @@ -23,7 +23,6 @@ using Umbraco.Cms.Core.Services; ### new RelationType(string name, string alias, bool isBidrectional, Guid? parentObjectType, Guid? childObjectType) - Create a new RelationType object with this constructor. It requires a `string` alias, the relation type's name, and a `bool` for bidirectionality. Additionally, specify the `Guid?` keys for both child and parent object types involved in the relation. ## Properties From bf3300ad237c2488af9ac037d10650e328d6cd40 Mon Sep 17 00:00:00 2001 From: Erik-Jan Westendorp Date: Wed, 3 Jan 2024 13:55:26 +0100 Subject: [PATCH 3/3] Update v10 & 12 --- 10/umbraco-cms/reference/management/models/relationtype.md | 4 ++-- 12/umbraco-cms/reference/management/models/relationtype.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/10/umbraco-cms/reference/management/models/relationtype.md b/10/umbraco-cms/reference/management/models/relationtype.md index bf3c17aa5aa..4c25dbb40f7 100644 --- a/10/umbraco-cms/reference/management/models/relationtype.md +++ b/10/umbraco-cms/reference/management/models/relationtype.md @@ -4,7 +4,7 @@ description: "The `RelationType` class represents a relation definition between # RelationType -The `RelationType` class represents a relation definition between two node types (content or media). For example keeping track of node usage across the site, in order to avoid deleting content that is used else where. When querying a relation this is done using the parent node key unless the `RelationType` is set to bidirectional in which case you can also query using the child node key. +The `RelationType` class represents a relation definition between two node types (content or media). For example keeping track of node usage across the site, in order to avoid deleting content that is used else where. When querying a relation, it is typically done using the parent node key. However, if the `RelationType` is bidirectional, querying with the child node key is also possible. * **Namespace:** `Umbraco.Cms.Core.Models` * **Assembly:** `Umbraco.Core.dll` @@ -24,7 +24,7 @@ using Umbraco.Cms.Core.Services; ### new RelationType(string name, string alias, bool isBidrectional, Guid? parentObjectType, Guid? childObjectType) -Constructor for creating a new RelationType object where the necessary parameters are the string alias and name of the relation type, a `bool` to indicate whether the relation is bidirectional, and the `Guid?` key of the child object type, parent object type the relation type will be for. +Create a new RelationType object with this constructor. It requires a `string` alias, the relation type's name, and a `bool` for bidirectionality. Additionally, specify the `Guid?` keys for both child and parent object types involved in the relation. ## Properties diff --git a/12/umbraco-cms/reference/management/models/relationtype.md b/12/umbraco-cms/reference/management/models/relationtype.md index 4635852eef6..82c91e3aca3 100644 --- a/12/umbraco-cms/reference/management/models/relationtype.md +++ b/12/umbraco-cms/reference/management/models/relationtype.md @@ -3,7 +3,7 @@ description: "The `RelationType` class represents a relation definition between --- # RelationType -The `RelationType` class represents a relation definition between two node types (content or media). For example keeping track of node usage across the site, in order to avoid deleting content that is used else where. When querying a relation this is done using the parent node key unless the `RelationType` is set to bidirectional in which case you can also query using the child node key. +The `RelationType` class represents a relation definition between two node types (content or media). For example keeping track of node usage across the site, in order to avoid deleting content that is used else where. When querying a relation, it is typically done using the parent node key. However, if the `RelationType` is bidirectional, querying with the child node key is also possible. * **Namespace:** `Umbraco.Cms.Core.Models` * **Assembly:** `Umbraco.Core.dll` @@ -23,7 +23,7 @@ using Umbraco.Cms.Core.Services; ### new RelationType(string name, string alias, bool isBidrectional, Guid? parentObjectType, Guid? childObjectType) -Constructor for creating a new RelationType object where the necessary parameters are the string alias and name of the relation type, a `bool` to indicate whether the relation is bidirectional, and the `Guid?` key of the child object type, parent object type the relation type will be for. +Create a new RelationType object with this constructor. It requires a `string` alias, the relation type's name, and a `bool` for bidirectionality. Additionally, specify the `Guid?` keys for both child and parent object types involved in the relation. ## Properties