mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE: Public visibility on DataQuery::selectField
It doesn't seem appropriate to hide this method from the public space. It precludes the user from customising queries in a DataList. ```php $mylist->alterDataquery(function($query) { $query->selectField("225,300,000km", "DistanceToMars"); }); ```
This commit is contained in:
parent
b2afc9fb52
commit
7f5608c599
@ -789,7 +789,7 @@ class DataQuery {
|
||||
* @param $fieldExpression String The field to select (escaped SQL statement)
|
||||
* @param $alias String The alias of that field (escaped SQL statement)
|
||||
*/
|
||||
protected function selectField($fieldExpression, $alias = null) {
|
||||
public function selectField($fieldExpression, $alias = null) {
|
||||
$this->query->selectField($fieldExpression, $alias);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user