diff --git a/CHANGELOG.md b/CHANGELOG.md index 795a2b8..b048a9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog ## main +## v0.13.6 +- Fixed typo on relation create + ## v0.13.5 - Fixed estate find method diff --git a/src/Query/RelationBuilder.php b/src/Query/RelationBuilder.php index ede21c4..ec589a7 100644 --- a/src/Query/RelationBuilder.php +++ b/src/Query/RelationBuilder.php @@ -88,8 +88,8 @@ public function create(): array OnOfficeResourceType::Relation, parameters: [ OnOfficeService::RELATIONTYPE => $this->relationType, - OnOfficeService::PARENTIDS => $this->parentIds, - OnOfficeService::CHILDIDS => $this->childIds, + OnOfficeService::PARENTID => $this->parentIds, + OnOfficeService::CHILDID => $this->childIds, ...$this->customParameters, ], ); diff --git a/src/Services/OnOfficeParameterConst.php b/src/Services/OnOfficeParameterConst.php index 01d6bd9..be60b01 100644 --- a/src/Services/OnOfficeParameterConst.php +++ b/src/Services/OnOfficeParameterConst.php @@ -25,8 +25,12 @@ trait OnOfficeParameterConst public const PARENTIDS = 'parentids'; + public const PARENTID = 'parentid'; + public const CHILDIDS = 'childids'; + public const CHILDID = 'childid'; + public const RECORDIDS = 'recordids'; public const PARAMETERCACHEID = 'parameterCacheId';