mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
various fixes
This commit is contained in:
@@ -98,7 +98,7 @@ class SocialAction
|
||||
{
|
||||
if (!$this->children->contains($child)) {
|
||||
$this->children[] = $child;
|
||||
$child->setParent($this);
|
||||
$child->setParent($this)->setIssue($this->getIssue());
|
||||
}
|
||||
|
||||
return $this;
|
||||
@@ -266,9 +266,16 @@ class SocialAction
|
||||
{
|
||||
$this->issue = $issue;
|
||||
|
||||
foreach ($this->getChildren() as $child) {
|
||||
$child->setIssue($issue);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal use $parent->addChild() instead (@see{self::addChild()})
|
||||
*/
|
||||
public function setParent(?self $parent): self
|
||||
{
|
||||
$this->parent = $parent;
|
||||
|
@@ -305,6 +305,9 @@ class SocialIssue
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal use @see{SocialIssue::addChild()} instead
|
||||
*/
|
||||
public function setParent(?self $parent): self
|
||||
{
|
||||
$this->parent = $parent;
|
||||
|
Reference in New Issue
Block a user