src/Entity/Traits/AlwaysValidTrait.php
public function injectEntityDataValidator(EntityDataValidatorInterface $entityDataValidator)
    {
        $this->entityDataValidator = $entityDataValidator;
        $this->entityDataValidator->setEntity($this);
    }
public function injectEntityDataValidator(EntityDataValidatorInterface $entityDataValidator)
    {
        $this->entityDataValidator = $entityDataValidator;
        $this->entityDataValidator->setEntity($this);
    }
public function injectEntityDataValidator ( EntityDataValidatorInterface $ entityDataValidator ) { $ this -> entityDataValidator = $ entityDataValidator ; $ this -> entityDataValidator -> setEntity ( $ this ) ; }
This method is called automatically by the EntityFactory when initialisig the Entity, by way of the
EntityDependencyInjector

@param EntityDataValidatorInterface $entityDataValidator
This method is called automatically by the EntityFactory when initialisig the Entity by way of the EntityDependencyInjector