Doctrine\OXM\Mapping\ClassMetadata::__wakeup PHP 메소드

__wakeup() 공개 메소드

Restores some state that can not be serialized/unserialized.
public __wakeup ( ) : void
리턴 void
    public function __wakeup()
    {
        // Restore ReflectionClass and properties
        $this->reflClass = new \ReflectionClass($this->name);
        foreach ($this->fieldMappings as $field => $mapping) {
            $reflField = $this->reflClass->getProperty($field);
            $reflField->setAccessible(true);
            $this->reflFields[$field] = $reflField;
        }
    }