application/Espo/Core/Utils/Util.php
public static function fromCamelCase($name, $symbol = '_')
    {
        if (is_array($name)) {
            foreach ($name as &$value) {
                $value = static::fromCamelCase($value, $symbol);
            }

            return $name;
        }

        $name[0] = strtolower($name[0]);
        return preg_replace_callback('/([A-Z])/', function ($matches) use ($symbol) {
                     return $symbol . strtolower($matches[1]);
                }, $name);
    }
public static function fromCamelCase($name, $symbol = '_')
    {
        if (is_array($name)) {
            foreach ($name as &$value) {
                $value = static::fromCamelCase($value, $symbol);
            }

            return $name;
        }

        $name[0] = strtolower($name[0]);
        return preg_replace_callback('/([A-Z])/', function ($matches) use ($symbol) {
                     return $symbol . strtolower($matches[1]);
                }, $name);
    }
public static function fromCamelCase ( $ name , $ symbol = '_' ) { if ( is_array ( $ name ) ) { foreach ( $ name as & $ value ) { $ value = static :: fromCamelCase ( $ value , $ symbol ) ; } return $ name ; } $ name [ 0 ] = strtolower ( $ name [ 0 ] ) ; return preg_replace_callback ( '/([A-Z])/' , function ( $ matches ) use ( $ symbol ) { return $ symbol . strtolower ( $ matches [ 1 ] ) ; } , $ name ) ; }
Convert name from Camel Case format.
ex. camelCase to camel-case

@param string | array $name

@return string
Convert name from Camel Case format . ex . camelCase to camel - case