You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am exploring the capabilities of AdonisJS and wondering if it supports a lifecycle hook for the .attach method. Specifically, I am interested in implementing a custom constraint for Many-to-Many relationships by intercepting the create or update operations on the pivot table.
Is there a built-in mechanism or recommended approach within AdonisJS to achieve this? I aim to enhance the handling of Many-to-Many relationships by incorporating a custom constraint during the attachment process, and any insights or guidance on this matter would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am exploring the capabilities of AdonisJS and wondering if it supports a lifecycle hook for the
.attach
method. Specifically, I am interested in implementing a custom constraint for Many-to-Many relationships by intercepting the create or update operations on the pivot table.Is there a built-in mechanism or recommended approach within AdonisJS to achieve this? I aim to enhance the handling of Many-to-Many relationships by incorporating a custom constraint during the attachment process, and any insights or guidance on this matter would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions