original_string: 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;
                  }
              }
          }
      }
code: 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;
                  }
              }
          }
      }
code_tokens: 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 ; } } } }
docstring: Checks if the defined attributes are unserializeable and unserializes their values
  
  @param mixed $event
docstring_tokens: Checks if the defined attributes are unserializeable and unserializes their values