public function setValidationResult(Result $result)
    {
        if (false === $this->mapperResult->hasErrors()) {
            $this->validationResult = $result;
        }
    }
public function setValidationResult(Result $result)
    {
        if (false === $this->mapperResult->hasErrors()) {
            $this->validationResult = $result;
        }
    }
public function setValidationResult ( Result $ result ) { if ( false === $ this -> mapperResult -> hasErrors ( ) ) { $ this -> validationResult = $ result ; } }
Manually set the validation result. Used in the cache service.

Should only be internally used, please be careful if you need to use this
function.

Note that if the mapping result given as constructor argument of this
object contains error, this function will do nothing.

@param Result $result
Manually set the validation result . Used in the cache service .