diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentMoveController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentMoveController.php index cc02b20ca..5e777f3e0 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentMoveController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentMoveController.php @@ -14,7 +14,6 @@ namespace Chill\PersonBundle\Controller; use Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWorkEvaluation; use Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWorkEvaluationDocument; use Chill\PersonBundle\Security\Authorization\AccompanyingPeriodWorkVoter; -use Chill\PersonBundle\Service\AccompanyingPeriodWorkEvaluationDocument\AccompanyingPeriodWorkEvaluationDocumentDuplicator; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php index 63221ec32..73102fc88 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkEvaluationDocument.php @@ -100,14 +100,14 @@ class AccompanyingPeriodWorkEvaluationDocument implements \Chill\MainBundle\Doct { // 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'); -// } -// } + // 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;