Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement belongs_to and has_and_belongs_to_many #74

Closed
saki7 opened this issue Dec 17, 2016 · 2 comments
Closed

Implement belongs_to and has_and_belongs_to_many #74

saki7 opened this issue Dec 17, 2016 · 2 comments
Assignees

Comments

@saki7
Copy link
Contributor

saki7 commented Dec 17, 2016

Quoting from #71:

one_to_one isn't explicitly supported, you can achieve it with having a has_one attribute within each entity. But its not exactly what one_to_one stands for.

I'm afraid that has_one + has_one is logically incorrect.
The possible scenarios are only limited to following:

  • has_one + belongs_to = "Game has one Game Community, Game Community belongs to one Game"
  • has_many + belongs_to = "Post has many Attachments, Attachment belongs to one Post"
  • has_many + has_many = "Post has many Categories, Category has many Posts" (need a joining table)

For OOS 0.5.1.

@zussel
Copy link
Owner

zussel commented Dec 17, 2016

Btw: Good summary about the relationships!

By now only has_many with no counterpart ist implemented 😞

But w'll change that!

@saki7 saki7 changed the title Implement belongs_to Implement belongs_to and has_many_and_belongs_to Dec 17, 2016
@saki7 saki7 changed the title Implement belongs_to and has_many_and_belongs_to Implement belongs_to and has_many_and_belongs_to_many Dec 17, 2016
@saki7 saki7 changed the title Implement belongs_to and has_many_and_belongs_to_many Implement belongs_to and has_and_belongs_to_many Dec 18, 2016
@zussel zussel self-assigned this Jan 5, 2017
@zussel zussel added this to the OOS 0.5.0 (Floian) milestone Jan 5, 2017
@zussel
Copy link
Owner

zussel commented Jan 5, 2017

I came to the conclusion that at least belongs_to is a major feature that shouldn't be missing. Therefor I attached it to milestone 0.5.0.

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

No branches or pull requests

2 participants