/** * When the hydrate request has finished, mark the document has hydrated. * This should be the last event listener called. * * @param HydrateEvent $event */ public function handleEndHydrate(HydrateEvent $event) { $this->documentRegistry->markDocumentAsHydrated($event->getDocument()); }