src/Sulu/Component/DocumentManager/Subscriber/Phpcr/RefreshSubscriber.php
private function rehydrateDocument($document, NodeInterface $node, $locale)
    {
        $hydrateEvent = new HydrateEvent($node, $locale, ['rehydrate' => true]);
        $hydrateEvent->setDocument($document);
        $this->eventDispatcher->dispatch(Events::HYDRATE, $hydrateEvent);
    }
private function rehydrateDocument($document, NodeInterface $node, $locale)
    {
        $hydrateEvent = new HydrateEvent($node, $locale, ['rehydrate' => true]);
        $hydrateEvent->setDocument($document);
        $this->eventDispatcher->dispatch(Events::HYDRATE, $hydrateEvent);
    }
private function rehydrateDocument ( $ document , NodeInterface $ node , $ locale ) { $ hydrateEvent = new HydrateEvent ( $ node , $ locale , [ 'rehydrate' => true ] ) ; $ hydrateEvent -> setDocument ( $ document ) ; $ this -> eventDispatcher -> dispatch ( Events :: HYDRATE , $ hydrateEvent ) ; }
Rehydrates the given document from the given node for the given locale.

@param object $document
@param NodeInterface $node
@param string $locale
Rehydrates the given document from the given node for the given locale .