$value ) { // todo: everything in $row is of type string // should we convert to the correct PHP type? if ( $key == $def->idProperty->columnName ) { $result[$def->idProperty->propertyName] = $value; } else { $result[$def->columns[$key]->propertyName] = $value; } } return $result; } } ?>