[Solar-talk] limit in select

Rodrigo Moraes rodrigo.moraes at gmail.com
Wed Jul 26 08:51:14 PDT 2006


On 7/26/06, Jeff Surgeson wrote:
> 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. :-)

rodrigo


More information about the solar-talk mailing list