You could apply a default scope, or your own "named scope". def ayes
end On Sep 28, 7:55 am, ttt <[EMAIL PROTECTED]> wrote: > Is there a way in DM to work with a subset of data of a particular > table? > > The main problem is the legacy datastore cannot be altered for various > reasons. > > Eg for one particular Object i would need only a subset of data and > the rest should be ignored. > > Eg in SQLITE the select could be > SELECT znr from zcustomizable where znr like "A%"; > > Currenly i have to add this everywhere (very ugly and difficult to > understand for third parties). > > Thanks for any insight how (and if) there is a solution for mapping > these for a more transparant use of the Objects. > > Cheers, > Tiele --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
