Skip to content

Search still broken in latest Nova with UUID #8

@LiamKarlMitchell

Description

@LiamKarlMitchell

Also if I type a single character such as f it will error something to do with an aggregate search.

If I edit the Search/PrimaryKey 's invoke method to put a cast it works.
But how to apply such a modification to Nova?

$cast = '';
if ($connectionType === 'pgsql' && $model->getKeyType() === 'uuid') {
    $cast = '::text';
}
return $query->{$whereOperator}($model->getQualifiedKeyName().$cast, $search);

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