public function preparedResults($values)
    {
        $preparedValues = [];

        /* @var $col Col */
        /* @var $field Field */
        foreach ($this->select as $pos => $selectColumn) {
            $col = $selectColumn[0];
            $field = $col->getOutputField();
            $val = ArrayHelper::getValue($values, $pos);
            // first use the inbuilt converters
            try {
                $val = Type::getType(
                    $field->dbType($this->connection)
                )->convertToPHPValue($val, $this->connection->getDatabasePlatform());
            } catch (DBALException $exception) {
            }

            // use the field converters if any were provided by the user.
            $converters = $field->getDbConverters($this->connection);

            if ($converters) {
                foreach ($converters as $converter) {
                    $val = call_user_func($converter, $this->connection, $val, $field);
                }
            }
            $preparedValues[] = $val;
        }

        return $preparedValues;
    }
public function preparedResults($values)
    {
        $preparedValues = [];

        /* @var $col Col */
        /* @var $field Field */
        foreach ($this->select as $pos => $selectColumn) {
            $col = $selectColumn[0];
            $field = $col->getOutputField();
            $val = ArrayHelper::getValue($values, $pos);
            // first use the inbuilt converters
            try {
                $val = Type::getType(
                    $field->dbType($this->connection)
                )->convertToPHPValue($val, $this->connection->getDatabasePlatform());
            } catch (DBALException $exception) {
            }

            // use the field converters if any were provided by the user.
            $converters = $field->getDbConverters($this->connection);

            if ($converters) {
                foreach ($converters as $converter) {
                    $val = call_user_func($converter, $this->connection, $val, $field);
                }
            }
            $preparedValues[] = $val;
        }

        return $preparedValues;
    }
public function preparedResults ( $ values ) { $ preparedValues = [ ] ; /* @var $col Col */ /* @var $field Field */ foreach ( $ this -> select as $ pos => $ selectColumn ) { $ col = $ selectColumn [ 0 ] ; $ field = $ col -> getOutputField ( ) ; $ val = ArrayHelper :: getValue ( $ values , $ pos ) ; // first use the inbuilt converters try { $ val = Type :: getType ( $ field -> dbType ( $ this -> connection ) ) -> convertToPHPValue ( $ val , $ this -> connection -> getDatabasePlatform ( ) ) ; } catch ( DBALException $ exception ) { } // use the field converters if any were provided by the user. $ converters = $ field -> getDbConverters ( $ this -> connection ) ; if ( $ converters ) { foreach ( $ converters as $ converter ) { $ val = call_user_func ( $ converter , $ this -> connection , $ val , $ field ) ; } } $ preparedValues [ ] = $ val ; } return $ preparedValues ; }
Ensure results are converted back to there respective php types.

@param $values

@return array

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
Ensure results are converted back to there respective php types .