Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

fRecordSet with LIMIT

posted by bonecandy 9 years ago

Hey, I'm new to flourish and I'm really liking it so far. I'm currently incorporating fActiveRecord into my app, but I'm not sure how to use a LIMIT clause with fRecordSet. I tried stuff like this:

fRecordSet::build('User',array('LIMIT=' => '5'));

But of course that assumes LIMIT is a column... So do I have to straight SQL or what? Thanks

static function findWithLimit($limit)
{
  return fRecordSet::build(
    __CLASS__,
    array(),
    array(), $limit);
}
posted by anonymous 9 years ago

Oh man, after looking at your code I checked the API. I see how to do it now, thanks.

posted by bonecandy 9 years ago