fix small risky code

This commit is contained in:
2023-07-19 16:28:51 +02:00
parent 075aca493b
commit 6e6f19c499
4 changed files with 7 additions and 19 deletions

View File

@@ -92,7 +92,7 @@ class SocialIssue
{
if (!$this->socialActions->contains($socialAction)) {
$this->socialActions[] = $socialAction;
$socialAction->setSocialIssue($this);
$socialAction->setIssue($this);
}
return $this;
@@ -328,8 +328,8 @@ class SocialIssue
{
if ($this->socialActions->removeElement($socialAction)) {
// set the owning side to null (unless already changed)
if ($socialAction->getSocialIssue() === $this) {
$socialAction->setSocialIssue(null);
if ($socialAction->getIssue() === $this) {
$socialAction->setIssue(null);
}
}