getLocationStatus() === 'person') { if ( null === $period->getOpenParticipationContainsPerson( $period->getPersonLocation() ) ) { $this->context->buildViolation($constraint->messagePersonLocatedMustBeAssociated) ->setParameter('{{ person_name }}', $this->render->renderString( $period->getPersonLocation(), [] )) ->addViolation(); } } if ( $period->getStep() !== AccompanyingPeriod::STEP_DRAFT && $period->getLocationStatus() === 'none' ) { $this->context ->buildViolation( $constraint->messagePeriodMustRemainsLocated ) ->addViolation(); } } }