silverstripe/silverstripe-framework — pull request #3490 by tractorcow (2014-09-15 00:33:12+00:00)
Title: API Allow parameterised joins / subselects

Until now only where conditions supported parameters.

In some cases, however, it can be more SQL efficient to join against subselects (e.g. when joining a table against a grouped subselect), and it may be necessary to allow parameterised conditions there.

This is necessary for migration of a certain part of the forum module to the new framework. (see https://github.com/silverstripe/silverstripe-forum/blob/0.6/code/pagetypes/Forum.php#L410)