le 28.06.2007 18:12 psnively a écrit: > This is a good point. Hmmm. What about changing > "has_and_belongs_to_many" to "has_and_belongs_to," with my patch? This > way it's: > > 1) More flexible > 2) Consistent with the documentation > 3) Consistent with other Elixir/SQLAlchemy usage involving the uselist > keyword argument > 4) More appropriately named > > As things stand at the moment, though, Elixir doesn't have a means of > describing a bidirectional 1-to-1 association, and this doesn't seem > to me to rise to the level of suggesting a fork--at all. At the > moment, however, that's what we have, and what you seem to be > suggesting. > > Thoughts? > > Apart for an existing DB where a specific table handles this one-to-one relation, what is the benefit of this method over the belongs_to / has_one syntax ? You also get a bidirectional association, don't you ?
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLElixir" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlelixir?hl=en -~----------~----~----~----~------~----~------~--~---
