Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Relationships Defined on One Side

#2822

I'm not sure where to put feature requests, but I think it would be neat if relationships between models could be defined in only one of the models.

Strange as it may seem, it would be nice to decrease the coupling between models, so that say for example, User models could exist, without requiring Profile models. But that if added, Profiles can "enhance" Users.

The difficulty obviously being that all models would have to be inspected, even if you're only using one.

Either way, it was a thought I had.

Reported by Alex · June 20th, 2009 @ 05:12 PM

State: wontfix
Milestone: 2.x
Assigned to: Ryan Bigg Ryan Bigg
Importance: none

Activity

  1. Steve St. Martin
    Steve St. Martin
    • Assigned user set to Ryan Bigg

    This would probably be a great deal of work, and likely drastically increase startup time as all models would have to be reflected over to determine associations. I agree it would be nice, however by opening a model you would not be aware of the associations it contained as they might be on the opposite side. My vote is for readability.

    can probably be marked as wontfix until a patch is provided.

    April 16th, 2010 @ 01:40 AM

  2. Ryan Bigg
    Ryan Bigg
    • State changed from new to wontfix

    I agree with Steve.

    April 16th, 2010 @ 03:01 AM