[Solar-talk] new model: has_one through
Rodrigo Moraes
rodrigo.moraes at gmail.com
Sun Apr 29 08:11:06 PDT 2007
Hi,
This is related to the new Model class. I have a model with related
data accessed through a foreign table for one-to-one relationships. I
first tried to setup a 'has_one-through' relationship, but then I
realized that it was not possible (currently only 'has_many-through'
is possible). I'm wondering if 'has_one-through' makes sense or if I
am missing something.
A workaround was to setup it as 'has_many-through' and then get only
the first record calling a method instead of accessing the
relationship property. Any other suggestions? Does this make sense at
all? I'm afraid it doesn't.
thanks,
rodrigo
More information about the solar-talk
mailing list