protected function getTableName($entityName)
    {
        $tableName = $entityName;
        preg_match_all('/[A-Z][a-z]+/', $entityName, $matches);
        if (!empty($matches[0])) {
            $tableName = implode('_', $matches[0]);
        }
        return strtolower($tableName);
    }
protected function getTableName($entityName)
    {
        $tableName = $entityName;
        preg_match_all('/[A-Z][a-z]+/', $entityName, $matches);
        if (!empty($matches[0])) {
            $tableName = implode('_', $matches[0]);
        }
        return strtolower($tableName);
    }
protected function getTableName ( $ entityName ) { $ tableName = $ entityName ; preg_match_all ( '/[A-Z][a-z]+/' , $ entityName , $ matches ) ; if ( ! empty ( $ matches [ 0 ] ) ) { $ tableName = implode ( '_' , $ matches [ 0 ] ) ; } return strtolower ( $ tableName ) ; }
Get table name by entity name

@param string $entityName Entity name

@return string Table name
Get table name by entity name