protected function convertColumnsToProperties(array $databaseValues)
    {
        $propertyValues = [];
        $propertyMap = $this->getPropertyMap();

        foreach ($databaseValues as $columnName => $value) {
            $conversionFunction = $propertyMap[$columnName]['cast'];

            $propertyValues[$propertyMap[$columnName]['name']] = $conversionFunction($value);
        }

        return $propertyValues;
    }
protected function convertColumnsToProperties(array $databaseValues)
    {
        $propertyValues = [];
        $propertyMap = $this->getPropertyMap();

        foreach ($databaseValues as $columnName => $value) {
            $conversionFunction = $propertyMap[$columnName]['cast'];

            $propertyValues[$propertyMap[$columnName]['name']] = $conversionFunction($value);
        }

        return $propertyValues;
    }
protected function convertColumnsToProperties ( array $ databaseValues ) { $ propertyValues = [ ] ; $ propertyMap = $ this -> getPropertyMap ( ) ; foreach ( $ databaseValues as $ columnName => $ value ) { $ conversionFunction = $ propertyMap [ $ columnName ] [ 'cast' ] ; $ propertyValues [ $ propertyMap [ $ columnName ] [ 'name' ] ] = $ conversionFunction ( $ value ) ; } return $ propertyValues ; }
Convert the given database values to properties.

@param array $databaseValues

@return array
Convert the given database values to properties .