cakephp/cakephp — pull request #4485 by markstory (2014-09-04 00:42:11+00:00)
Title: Add query->clear().

I found a few duplicated blocks of code related to clearing query state when subqueries are created. Having a function will help prevent code getting out of sync in the future.