Skip to content

Full text search throught relationship with string ID #89

@japafrite

Description

@japafrite

Hi,
When relationship is with string id, it cannot work

return Search::addFullText(Model::class,
	[
                            'id',
                            'name',
                            'town' => ['name', 'postcode'],
                        ],
	['mode' => 'boolean']
)
->search($seek);

With relation belongs to on Model by town_id and id that is a string

Error is

ProtoneMedia\LaravelCrossEloquentSearch\ModelToSearchThrough::setFullTextRelation(): Argument #1 ($fullTextRelation) must be of type ?string, int given, called in /home/sc1hjny5024/public_html/script_dev11/vendor/protonemedia/laravel-cross-eloquent-search/src/ModelToSearchThrough.php on line 246

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