silverstripe/sapphire — pull request #400 by halkyon (2012-05-03 07:38:35+00:00)
Title: API CHANGE Deprecated internal access to SQLQuery properties

Modified `SQLQuery` to deprecate access to internal properties. Bit of an API cleanup.

Added getters and setters for the internal properties.
Deprecation notice is thrown if attempting to get or set an internal property on SQLQuery.

Setters clear existing clauses by default, but you can set the `$clear` flag on each to merge existing clauses instead.

In addition, I've documented the change in the upgrading notes.