[eluser]Conerck[/eluser]
Got a question...
Is there any good reason why $obj->count() clears the query?
The reason I ask is, because I'm working on pagination for a rather complex search query and I need to get the total amount of matches in the DB. Since $obj->count() clears the query I have to build it the whole query again for get() call. This seems unneccesary and 'dirty'.
The other option would be to just skip the count and fetch the entire result set and then count them with count($obj->all), but then I'm stuck with extracting the relevant DB entries for my current page, whereas I could have much rather let the DB handle that part with limit()...