Multitenancy Association issue.

Hi I am using Companies plugin. I have Catgeory and Subcategory created by the admin. And I want to associate (attach) companies to multiple Categories and subcategories. I am Category and Subcategory resource in companies panel . In my table, I am adding Attach action but when i try using this while searching category, it fails. I get below error.
Filament\Support\Services\RelationshipJoiner::prepareQueryForNoConstraints(): Argument #1 ($relationship) must be of type Illuminate\Database\Eloquent\Relations\Relation, null given, called in /var/www/html/vendor/filament/tables/src/Actions/AttachAction.php on line 187
Filament\Support\Services\RelationshipJoiner::prepareQueryForNoConstraints(): Argument #1 ($relationship) must be of type Illuminate\Database\Eloquent\Relations\Relation, null given, called in /var/www/html/vendor/filament/tables/src/Actions/AttachAction.php on line 187
. It looks like it trying to attach using User. But I felt if i am in Company tenancy, attaching will be for company. Please Correct me if I am wrong. My usecase is to just associate Buisness category to Business.
0 Replies
No replies yetBe the first to reply to this messageJoin