src/wcmf/lib/model/mapper/impl/AbstractRDBMapper.php
protected function convertValueFromStorage($valueName, $value) {
    // filter values according to type
    if ($this->hasAttribute($valueName)) {
      $type = $this->getAttribute($valueName)->getType();
      // integer
      if (strpos(strtolower($type), 'int') === 0) {
        $value = (strlen($value) == 0) ? null : intval($value);
      }
    }
    return $value;
  }
protected function convertValueFromStorage($valueName, $value) {
    // filter values according to type
    if ($this->hasAttribute($valueName)) {
      $type = $this->getAttribute($valueName)->getType();
      // integer
      if (strpos(strtolower($type), 'int') === 0) {
        $value = (strlen($value) == 0) ? null : intval($value);
      }
    }
    return $value;
  }
protected function convertValueFromStorage ( $ valueName , $ value ) { // filter values according to type if ( $ this -> hasAttribute ( $ valueName ) ) { $ type = $ this -> getAttribute ( $ valueName ) -> getType ( ) ; // integer if ( strpos ( strtolower ( $ type ) , 'int' ) === 0 ) { $ value = ( strlen ( $ value ) == 0 ) ? null : intval ( $ value ) ; } } return $ value ; }
Convert value after retrieval from storage
@param $valueName
@param $value
@return Mixed
Convert value after retrieval from storage