src/Resources/BaseDbTableResource.php
protected function getFieldsInfo($table_name)
    {
        $table = $this->getTableSchema(null, $table_name);
        if (!$table) {
            throw new NotFoundException("Table '$table_name' does not exist in the database.");
        }

        return $table->getColumns(true);
    }
protected function getFieldsInfo($table_name)
    {
        $table = $this->getTableSchema(null, $table_name);
        if (!$table) {
            throw new NotFoundException("Table '$table_name' does not exist in the database.");
        }

        return $table->getColumns(true);
    }
@param $table_name

@return ColumnSchema[]
@throws \Exception