public function add(ValidationResult $validation, $prefix = null)
    {
        $prefix = $this->translate($prefix);
    
        foreach ($validation->getErrors() as $err) {
            $this->errors[] = ($prefix ? trim($prefix) . ' ' : '') . $err; 
        }
    }
public function add(ValidationResult $validation, $prefix = null)
    {
        $prefix = $this->translate($prefix);
    
        foreach ($validation->getErrors() as $err) {
            $this->errors[] = ($prefix ? trim($prefix) . ' ' : '') . $err; 
        }
    }
public function add ( ValidationResult $ validation , $ prefix = null ) { $ prefix = $ this -> translate ( $ prefix ) ; foreach ( $ validation -> getErrors ( ) as $ err ) { $ this -> errors [ ] = ( $ prefix ? trim ( $ prefix ) . ' ' : '' ) . $ err ; } }
Add errors from a validation object

@param ValidationResult $validation
@param string           $prefix
Add errors from a validation object