[Solar-talk] limit in select

Jeff Surgeson solar at 3hex.com
Wed Jul 26 08:34:26 PDT 2006


> Anyway, you can't use fetchAll()->...->limit() because fetchAll()
> returns a Rowset object. You can make add a method to bd_news class to
> create a select and add limit to it, or, better, if you use this
> often, make a base class that extends Solar_Sql_Table and always
> extend it instead. Then you can add custom methods or convenience
> methods that you use often.

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.

I just thought that there had to be a way to use the limit() method 
somehow :-) 

-- 
Jeff Surgeson


More information about the solar-talk mailing list