Common\Doctrine\Entity\Meta::unSerialiseData PHP Метод

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

public unSerialiseData ( )
    public function unSerialiseData()
    {
        if ($this->data !== null) {
            // backwards compatible fix for when the seo is saved with the serialized value objects
            // @TODO remove this for fork 5
            $this->data = preg_replace('$O\\:3[67]\\:"Common\\\\Doctrine\\\\ValueObject\\\\(?:(?:SEOIndex)|(?:SEOFollow))"\\:1\\:{s\\:4[68]\\:"\\x00Common\\\\Doctrine\\\\ValueObject\\\\(?:(?:SEOIndex)|(?:SEOFollow))\\x00(?:(?:SEOIndex)|(?:SEOFollow))";(s\\:\\d+\\:".+?";)}$', '$1', $this->data);
            $this->data = unserialize($this->data);
            if (array_key_exists('seo_index', $this->data)) {
                $this->data['seo_index'] = SEOIndex::fromString($this->data['seo_index']);
            }
            if (array_key_exists('seo_follow', $this->data)) {
                $this->data['seo_follow'] = SEOFollow::fromString($this->data['seo_follow']);
            }
            return;
        }
        $this->data = [];
    }