On Nov 7, 5:59 am, Michael Hayden <[email protected]> wrote: > Iain, > > Just to be clear, I wasn't trying to say that instance.field works for all > fields of a join. It seems just those which were in the original Model derived > dataset which was joined to. I'm not sure under what circumstances you could > get > them all to work that way. My practice is to specify all tables from their > Models, but all further joined table fields seem to lose their model-like > behavior even if the dataset used was originally specified from a Model > object. > > In any case, when in doubt I use the hash method which always seems to work on > all fields of a join.
By design, Sequel::Model only creates accessors for columns in the model's dataset. If you add other columns, you either have to define your own accessors, or use the hash-like notation [:column]. Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" 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/sequel-talk?hl=en.
