Using the Kohana query builder, is it possible to build my query piece by piece.
Then execute a count on said query.
Then execute the query itself.
All without having to write duplicate conditionals... one for the count and one for the results...
Adding
DB::select(array('COUNT("pid")', 'mycount'))
To the main query results in only getting back one record.
Is it maybe possible to execute the count, and somehow remove
array('COUNT("pid")', 'mycount')
from the select...
Right now the only way I can think of is a find and replace on the SQL code itself, and then just running said code SQL... there must be a better way though... I hope...
Thanks!