Load social work, and fix some repositories

This commit is contained in:
2021-07-30 23:42:30 +02:00
committed by Marc Ducobu
parent 8a962a4f1c
commit 0e2e7155fb
9 changed files with 623 additions and 427 deletions

View File

@@ -841,7 +841,9 @@ class AccompanyingPeriod implements TrackCreationInterface, TrackUpdateInterface
public function addSocialIssue(SocialIssue $socialIssue): self
{
$this->socialIssues[] = $socialIssue;
if (!$this->socialIssues->contains($socialIssue)) {
$this->socialIssues[] = $socialIssue;
}
return $this;
}