private function toCamelCase($fieldname)
    {
        $words = str_replace('_', ' ', $fieldname);
        $words = ucwords($words);
        $pascalCased = str_replace(' ', '', $words);

        return lcfirst($pascalCased);
    }
private function toCamelCase($fieldname)
    {
        $words = str_replace('_', ' ', $fieldname);
        $words = ucwords($words);
        $pascalCased = str_replace(' ', '', $words);

        return lcfirst($pascalCased);
    }
private function toCamelCase ( $ fieldname ) { $ words = str_replace ( '_' , ' ' , $ fieldname ) ; $ words = ucwords ( $ words ) ; $ pascalCased = str_replace ( ' ' , '' , $ words ) ; return lcfirst ( $ pascalCased ) ; }
returns field name camelcased if it has underlines

eg: user_id => userId

@param string $fieldname

@return string
returns field name camelcased if it has underlines