0
I have 3 tables in my project that need to be related: responsabilities, knowledges and knowledges_responsabilities, which summarizes :
Each responsabilitie may have 1 or more Knowledges, and each Knowledge belongs to 1 or more responsabilitie.
The knowledges_responsabilities table will contain the id of the two other tables.
The relationship in the model I already made, and fetch the records of Knowledges in the form of Responsabilities I have already managed.
What should I put in the Responsabilities controller to work?
How does it work? How does it work? Get the responsibility data and knowledges?
– CesarMiguel
@Cesarmiguel , logically should when selecting which knowledges , a responsabilitie has, he create in the intermediate table the relationship between them. I’m not understanding how to save the id’s in the intermediate table.
– Bruno Fonseca
That’s right. Lack of my research on Stack! Thanks @Andrey.
– Bruno Fonseca