fuel / orm

Fuel PHP Framework - Fuel v1.x ORM
http://fuelphp.com/docs/packages/orm/intro.html
151 stars 95 forks source link

and_where_open() not getting set in subquery #361

Closed yswery closed 9 years ago

yswery commented 9 years ago

I am using in CRUD the and_where_open() method as per the docs (http://fuelphp.com/docs/packages/orm/crud.html#/complex_wheres) along with a has_many related query and a limit().

When looking at the query the 'where' clauses inside the subquery are not being set at all meaning that the whole dataset is returned while retaining the limit/offset