| 2008-06-09 11:50:32 | Ответить |
|---|---|
|
Eugeni Адрес: Ukraine, Kharkov Сообщений: 3 Регистр: 2008-01-28 его блог 0 сообщ. |
RE: RE: Связь многие ко многим с двумя паралельными промежуточными таблицами |
|
Был еще вариант оставить одну промежуточную таблицу добавив в неё поле аля type.
Только вопрос как с ней работать если в документации четко указано что: Deprecated: Any additional fields added to the join table will be placed as attributes when pulling records out through has_and_belongs_to_many associations. Records returned from join tables with additional attributes will be marked as ReadOnly (because we can’t save changes to the additional attrbutes). It’s strongly recommended that you upgrade any associations with attributes to a real join model (see introduction). Есть ещё какие либо идеи по этому поводу?(желательно с примерами) |
|