One-to-Many Self relation, Not enough information to infer relation
Im currently working on a piece of software for infrastructure management. This software contains so-called "controls" that need to be done periodically. Every control can be followed up by multiple controls (called follow up control). But each control can only have one parent control it follows up on.
I have created the following schema:
However when i try to query with followUpControls i get "There is not enough information to infer relation "controls.followUpControls""
4 Replies
You might find this thread helpful https://discord.com/channels/1043890932593987624/1173896750663213066
I saw that post but im not sure how that applies here. Since each control can have multiple follow up controls but only one control it follows up on, wouldn't that make it a one-to-many relation and not many-to-many as stated in the post you linked?
Ok, I just looked at your code. I think you might only need to give then the same relationName
That did the trick, don't know why i didn't think of that myself. Thanks a bunch 🙂