ScalableBehavior.php
public function scalableToVirtual($event = null)
    {
        if (($this->scalableAttributeName() !== null) &&
        ($this->virtualAttributesNames() !== null)) {

            $virtualAttributesConf = [];
            foreach ($this->virtualAttributesNames() as $name) {
                $virtualAttributesConf[$name] = '';
            }

            $virtualAttributesNames = ArrayHelper::merge(
                $virtualAttributesConf,
                (($a = $this->unConvert($this->owner->{$this->scalableAttributeName()})) !== null) ? $a : []
            );

            foreach ($virtualAttributesNames as $name => $value) {
                if (in_array($name, $this->virtualAttributesNames())) {
                    $this->owner->{$name} = $value;
                }
            }
        }
    }
public function scalableToVirtual($event = null)
    {
        if (($this->scalableAttributeName() !== null) &&
        ($this->virtualAttributesNames() !== null)) {

            $virtualAttributesConf = [];
            foreach ($this->virtualAttributesNames() as $name) {
                $virtualAttributesConf[$name] = '';
            }

            $virtualAttributesNames = ArrayHelper::merge(
                $virtualAttributesConf,
                (($a = $this->unConvert($this->owner->{$this->scalableAttributeName()})) !== null) ? $a : []
            );

            foreach ($virtualAttributesNames as $name => $value) {
                if (in_array($name, $this->virtualAttributesNames())) {
                    $this->owner->{$name} = $value;
                }
            }
        }
    }
public function scalableToVirtual ( $ event = null ) { if ( ( $ this -> scalableAttributeName ( ) !== null ) && ( $ this -> virtualAttributesNames ( ) !== null ) ) { $ virtualAttributesConf = [ ] ; foreach ( $ this -> virtualAttributesNames ( ) as $ name ) { $ virtualAttributesConf [ $ name ] = '' ; } $ virtualAttributesNames = ArrayHelper :: merge ( $ virtualAttributesConf , ( ( $ a = $ this -> unConvert ( $ this -> owner -> { $ this -> scalableAttributeName ( ) } ) ) !== null ) ? $ a : [ ] ) ; foreach ( $ virtualAttributesNames as $ name => $ value ) { if ( in_array ( $ name , $ this -> virtualAttributesNames ( ) ) ) { $ this -> owner -> { $ name } = $ value ; } } } }
Checks if the defined attributes are unserializeable and unserializes their values

@param mixed $event
Checks if the defined attributes are unserializeable and unserializes their values