[Solar-talk] limit in select
Jeff Surgeson
solar at 3hex.com
Wed Jul 26 09:11:01 PDT 2006
> > Cheers, yes I have created a select method in my class, which is just a
> > clone of Solar_Sql_Table's select method but added a limit clause.
>
> As I said, I think that a good strategy is to never extend Sql_Table
> directly, but to extend a custom class (which extends Sql_Table). In
> that custom class you add common methods that all your Sql_Table
> objects use; this way, you won't need to duplicate the function to add
> limit again, and also you'll be aware of the custom methods shared by
> all your table objects, which is something nice to put in a wiki. :-)
Cheers again, yes I look forwar to this wiki, as I still battle with some of
these concepts :-(
--
Jeff Surgeson
More information about the solar-talk
mailing list