diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php index 73102fc88..10329c400 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php @@ -98,16 +98,6 @@ class AccompanyingPeriodWorkEvaluationDocument implements \Chill\MainBundle\Doct public function setAccompanyingPeriodWorkEvaluation(?AccompanyingPeriodWorkEvaluation $accompanyingPeriodWorkEvaluation): AccompanyingPeriodWorkEvaluationDocument { - // if an evaluation is already associated, we cannot change the association (removing the association, - // by setting a null value, is allowed. - // if ( - // $this->accompanyingPeriodWorkEvaluation instanceof AccompanyingPeriodWorkEvaluation - // && $accompanyingPeriodWorkEvaluation instanceof AccompanyingPeriodWorkEvaluation - // ) { - // if ($this->accompanyingPeriodWorkEvaluation !== $accompanyingPeriodWorkEvaluation) { - // throw new \RuntimeException('It is not allowed to change the evaluation for a document'); - // } - // } $this->accompanyingPeriodWorkEvaluation = $accompanyingPeriodWorkEvaluation; return $this;