Doctrine\ODM\PHPCR\Mapping\ClassMetadata::wakeupReflection PHP Метод

wakeupReflection() публичный Метод

Restores some state that can not be serialized/unserialized.
public wakeupReflection ( Doctrine\Common\Persistence\Mapping\ReflectionService $reflService )
$reflService Doctrine\Common\Persistence\Mapping\ReflectionService
    public function wakeupReflection(ReflectionService $reflService)
    {
        $this->reflClass = $reflService->getClass($this->name);
        $this->namespace = $reflService->getClassNamespace($this->name);
        $fieldNames = array_merge($this->getFieldNames(), $this->getAssociationNames());
        foreach ($fieldNames as $fieldName) {
            $reflField = isset($this->mappings[$fieldName]['declared']) ? new ReflectionProperty($this->mappings[$fieldName]['declared'], $fieldName) : $this->reflClass->getProperty($fieldName);
            $reflField->setAccessible(true);
            $this->reflFields[$fieldName] = $reflField;
        }
    }
ClassMetadata