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