I wrote a site on Fuelphp at the last moment and was stuck with a filter. The filter on the parameters of the dresses, it can be seen here see in FireBUG http://maxdevelopment.ru/catalog I have used many-to-many relationship for tables sizes and frocks. I need filter dresses including in size. Filtering is not correct, when filtered by size. Please help me in this.
My code - http://dumpz.org/349785/
$query = $this->getOrmFrock()->query();then when you need to add something:
if ( ! empty($something)) $query->where('field', 'IN', $something);And end with
$data['frocks'] = $query->limit(16)->get();
Then the solution of which work correctly with orm+limit+offset+2ordering+where+in may to someone it will help.
echo DB::last_query();to check what SQL is exactly generated.
It looks like you're new here. If you want to get involved, click one of these buttons!