F
Filamentβ€’5w ago
toeknee

Relationship with a relationship after create?

I need to add some relationship data to a relationships relationship. For example: Order -> products -> customisations In a duplicate order function, We have the repeater loading which loads the products relationship, I want to then clone over the customisations relationship. We don't seem to be able to use mutateRelationshipDataBeforeCreating to assign the relationship values.. and theres no record at this state, it's almost like we need an afterCreate function on a repeater relationship?
4 Replies
Matthew
Matthewβ€’5w ago
Just use a custom handler ?
toeknee
toekneeOPβ€’5w ago
Not qutie that easy. we already. The only way I can see to do this, would be to run on the after method but in doing so it's awfully labersome.
Matthew
Matthewβ€’5w ago
I'm out then 😜
toeknee
toekneeOPβ€’5w ago
I'll just use after, it's just woefully laboursome really to what i needed to be hehe That worked ok in the end πŸ™‚
Want results from more Discord servers?
Add your server