Nested Resources with manyToMany relationship

Hello! What I'm trying to do: I'm trying to implement a three-level deep nested resources project, where one of the relationship is a manyToMany relationship (ActivityEmployee). These are the models and relationships: A PROJECT has only one WORKGROUP. A WORKGROUP may correspond to several PROJECTS. A WORKGROUP has many EMPLOYEES. An EMPLOYEE may correspond to several WORKGROUPS. A PROJECT has many ACTIVITIES. An ACTIVITY correspond to only one PROJECT. An ACTIVITY may correspond to one or more EMPLOYEES. An EMPLOYEE may correspond to one or more ACTIVITIES. Basically I want to enter a PROJECT and see the related ACTIVITIES. Clicking on one of those ACTIVITIES I want to associate one or more EMPLOYEES. This is a route example: ../projects/1/activities/3/employees/2 What I tried: I tried "Nested Resources" by Guava, but it does not support manyToMany relationships. Thanks!
1 Reply
nicobrave
nicobraveOP4mo ago
:fi:
Want results from more Discord servers?
Add your server