Melomancheto
Multi-tenancy for models with no direct relation to user
so If I do that and for example go in the GameMedia Resource and I add
protected static ?string $tenantOwnershipRelationshipName = 'game';
it should work, right?
It will know that the ownership of the organization is contained by the game
I've tested it and it works, but I just wan to be sure that I understand
9 replies
Multi-tenancy for models with no direct relation to user
First of all, thank you @arnaudsf for trying to help.
SO the idea is that I have a Game Resource, this resource is splitted into 2-3 resources for ease of the user. They are:
- Game Application
- Game Media
They are both related to the Game.
The game itself is tied to a user, who is tied to a Organization.
I don't know if I'm going the right way, but I consider them as tenant resources, because they need to be managed by the organization
9 replies
How to handle selected relations during creating a record in handleRecordCreation
Since you are here I can see that I need to attach this after the schema, but I get the same error again.
https://filamentphp.com/docs/3.x/forms/fields/repeater#mutating-related-item-data-before-creating
It's not hitting the callback, it throws an error before that.
16 replies