Skip to content

Commit

Permalink
Added the methods to be able to reset the relation fileds in the anal…
Browse files Browse the repository at this point in the history
…ysis creation part.
  • Loading branch information
Ruslan Baidan committed Oct 12, 2022
1 parent f69d456 commit e69dd92
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Model/Entity/ObjectCategorySuperClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 7 additions & 0 deletions src/Model/Entity/ObjectSuperClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,13 @@ public function setAnr($anr): self
return $this;
}

public function resetAnrs(): self
{
$this->anrs = new ArrayCollection();

return $this;
}

/**
* @return ObjectCategorySuperClass
*/
Expand Down

0 comments on commit e69dd92

Please sign in to comment.