mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
add api endpoint for adding/remove social issue on accompanying period
This commit is contained in:
@@ -249,6 +249,7 @@ class AccompanyingPeriod
|
||||
* @ORM\JoinTable(
|
||||
* name="chill_person_accompanying_period_social_issues"
|
||||
* )
|
||||
* @Groups({"read"})
|
||||
*/
|
||||
private Collection $socialIssues;
|
||||
|
||||
@@ -727,14 +728,14 @@ class AccompanyingPeriod
|
||||
return $this->socialIssues;
|
||||
}
|
||||
|
||||
public function addSocialIssues(SocialIssue $socialIssue): self
|
||||
public function addSocialIssue(SocialIssue $socialIssue): self
|
||||
{
|
||||
$this->socialIssues[] = $socialIssue;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function removeSocialIssue(SocialIssue $socialissue): void
|
||||
public function removeSocialIssue(SocialIssue $socialIssue): void
|
||||
{
|
||||
$this->socialIssues->removeElement($socialIssue);
|
||||
}
|
||||
|
Reference in New Issue
Block a user