public function wakeupReflection($reflService) { // Restore ReflectionClass and properties $this->reflClass = $reflService->getClass($this->className); foreach ($this->fieldMappings as $field => $mapping) { $this->reflFields[$field] = $reflService->getAccessibleProperty($this->className, $field); } }