Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Add support for additional information on HABTM relationships #20

Open
mb5 opened this issue Nov 23, 2011 · 0 comments
Open

Add support for additional information on HABTM relationships #20

mb5 opened this issue Nov 23, 2011 · 0 comments

Comments

@mb5
Copy link

mb5 commented Nov 23, 2011

Twistar currently lacks support on adding information on HABTM relationship assosiations.
Consider the following example: An Actor plays roles in Movies. Each Actor can appear in multiple Movies, but play different Roles on each Movie. The DB table to represent this HABTM relationship would look like this:
Table Actor(name)
|
Table plays_in(movie_id)(role)
|
Table Movie(name)

Such a mapping is currently not possible with Twistar because the Role field cannot be accessed on a HABTM relationship, but it should be.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant