spadefoot/kohana-orm-leap

Ability to remove "clauses" from SQL builder

Opened this issue · 3 comments

taai commented

Yeah, I have also needed this. But only for the limit(). What I did - I created a nolimit() method. I think that it will not be too hard to remove the LIMIT and ORDER BY, but WHERE get's more complex.
Maybe some day...

Rather than have a 'nolimit()' method, we could just accept a NULL value which removes the limit. The same could be done with the offset method.

Just added a new method to builder classes to reset them.