ObjectFilter/ObjectFilter.php
protected function doRestore($object): void
    {
        $changeSet = $this->uow->getObjectChangeSet($object);
        $ref = new \ReflectionClass($object);

        foreach ($changeSet as $field => $values) {
            $fv = new FieldVote($object, $field);

            if ($this->isRestoreViewGranted($fv, $values)) {
                $property = $ref->getProperty($field);
                $property->setAccessible(true);
                $property->setValue($object, $values['old']);
            }
        }
    }
protected function doRestore($object): void
    {
        $changeSet = $this->uow->getObjectChangeSet($object);
        $ref = new \ReflectionClass($object);

        foreach ($changeSet as $field => $values) {
            $fv = new FieldVote($object, $field);

            if ($this->isRestoreViewGranted($fv, $values)) {
                $property = $ref->getProperty($field);
                $property->setAccessible(true);
                $property->setValue($object, $values['old']);
            }
        }
    }
protected function doRestore ( $ object ) : void { $ changeSet = $ this -> uow -> getObjectChangeSet ( $ object ) ; $ ref = new \ ReflectionClass ( $ object ) ; foreach ( $ changeSet as $ field => $ values ) { $ fv = new FieldVote ( $ object , $ field ) ; if ( $ this -> isRestoreViewGranted ( $ fv , $ values ) ) { $ property = $ ref -> getProperty ( $ field ) ; $ property -> setAccessible ( true ) ; $ property -> setValue ( $ object , $ values [ 'old' ] ) ; } } }
Executes the restoring.

@param object $object
Executes the restoring .