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
Just use a custom handler ?
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.
I'm out then π
I'll just use after, it's just woefully laboursome really to what i needed to be hehe
That worked ok in the end π