spadefoot / kohana-orm-leap

An ORM module for the Kohana PHP framework that is designed to work with all major databases.
http://spadefoot.github.io/kohana-orm-leap/
100 stars 25 forks source link

Ability to remove "clauses" from SQL builder #36

Open bluesnowman opened 12 years ago

bluesnowman commented 12 years ago

See, http://dev.kohanaframework.org/issues/3495

taai commented 12 years ago

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...

bluesnowman commented 12 years ago

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.

bluesnowman commented 11 years ago

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