mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
fix small risky code
This commit is contained in:
@@ -133,7 +133,7 @@ class Evaluation
|
||||
public function removeSocialAction(SocialAction $socialAction): self
|
||||
{
|
||||
if ($this->socialActions->contains($socialAction)) {
|
||||
$this->socialActions->remove($socialAction);
|
||||
$this->socialActions->removeElement($socialAction);
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user