Hello! Thanks for this awesome project it's exactly what I was looking for.
I'm having troubles with n:n relations in databases.
I have 3 tables:
Users
Channels (one user can have multiple channels)
users_channels
The third one is a "helper" table I use to relate the data in the database (foreign keys, etc)
Now I'm not sure how I can efficiently work with these because relations as explained here won't work since I can only map directly between Users and Channels for example.
At the moment my User class (which extends dbObject) has a custom function "loadChannels()" where I have successfully (but very very ugly) combined the data.
Hello! Thanks for this awesome project it's exactly what I was looking for.
I'm having troubles with n:n relations in databases.
I have 3 tables:
The third one is a "helper" table I use to relate the data in the database (foreign keys, etc)
Now I'm not sure how I can efficiently work with these because relations as explained here won't work since I can only map directly between Users and Channels for example.
At the moment my User class (which extends dbObject) has a custom function "loadChannels()" where I have successfully (but very very ugly) combined the data.
My question is: Is there an easier or more elegant way to map n:n?