Skip to content

Column not found: 1054 Unknown column #7

@Muetze42

Description

@Muetze42

I've a table channels with the colum name.
And a BelongsTo Filed:

            BelongsTo::make(__('Name'), 'channel', Channel::class)
                ->exceptOnForms()->sortable(),

How it works? I've tested these:

    public static array $sortRelations = [
        'id' => 'channel.name',
    ];
    public static array $sortRelations = [
        'id' => [
            'twitch_users.display_name',
        ],
    ];

Both return SQLSTATE[42S22]: Column not found: 1054 Unknown column.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions