public function buildEntityDataValidator(): EntityDataValidatorInterface
    {
        $builder = Validation::createValidatorBuilder();
        $builder->addMethodMapping(self::METHOD_LOAD_VALIDATOR_META_DATA);
        $builder->setMetadataCache($this->doctrineCache);
        $builder->setConstraintValidatorFactory($this->factory);
        $builder->addObjectInitializer($this->initialiser);
        $validator = $builder->getValidator();

        return new EntityDataValidator($validator);
    }