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

@@ -68,6 +68,15 @@ class SocialAction
*/
private $results;
/**
* @var Collection
* @ORM\OneToMany(
* targetEntity=Evaluation::class,
* mappedBy="socialAction"
* )
*/
private Collection $evaluations;
public function __construct()
{
$this->children = new ArrayCollection();
@@ -257,4 +266,12 @@ class SocialAction
return $this;
}
/**
* @return Collection
*/
public function getEvaluations(): Collection
{
return $this->evaluations;
}
}