mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Load social work, and fix some repositories
This commit is contained in:
@@ -23,17 +23,20 @@ class Evaluation
|
||||
private $title = [];
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="dateinterval", nullable=true)
|
||||
* @ORM\Column(type="dateinterval", nullable=true, options={"default": null})
|
||||
*/
|
||||
private $delay;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="dateinterval")
|
||||
* @ORM\Column(type="dateinterval", nullable=true, options={"default": null})
|
||||
*/
|
||||
private $notificationDelay;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity=SocialAction::class)
|
||||
* @ORM\ManyToOne(
|
||||
* targetEntity=SocialAction::class,
|
||||
* inversedBy="evaluations"
|
||||
* )
|
||||
*/
|
||||
private $socialAction;
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user