diff --git a/src/Model/Entity/ObjectCategorySuperClass.php b/src/Model/Entity/ObjectCategorySuperClass.php index 0da2c451..8474fd95 100755 --- a/src/Model/Entity/ObjectCategorySuperClass.php +++ b/src/Model/Entity/ObjectCategorySuperClass.php @@ -220,6 +220,13 @@ public function addObject(ObjectSuperClass $object): self return $this; } + public function resetObjects(): self + { + $this->objects = new ArrayCollection(); + + return $this; + } + public function isCategoryRoot(): bool { return $this->root === null; diff --git a/src/Model/Entity/ObjectSuperClass.php b/src/Model/Entity/ObjectSuperClass.php index 9edd5802..3134e622 100755 --- a/src/Model/Entity/ObjectSuperClass.php +++ b/src/Model/Entity/ObjectSuperClass.php @@ -253,6 +253,13 @@ public function setAnr($anr): self return $this; } + public function resetAnrs(): self + { + $this->anrs = new ArrayCollection(); + + return $this; + } + /** * @return ObjectCategorySuperClass */