mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Removing DataObject::buildSQL() and extendedSQL(), use DataList instead
This commit is contained in:
parent
651d4b3d41
commit
0db33f7f04
@ -2632,23 +2632,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.0 Use DataList::create and DataList to do your querying
|
||||
*/
|
||||
public function buildSQL($filter = "", $sort = "", $limit = "", $join = "", $restrictClasses = true, $having="") {
|
||||
Deprecation::notice('3.0', 'Use DataList::create and DataList to do your querying instead.');
|
||||
return $this->extendedSQL($filter, $sort, $limit, $join, $having);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.0 Use DataList::create and DataList to do your querying
|
||||
*/
|
||||
public function extendedSQL($filter = "", $sort = "", $limit = "", $join = ""){
|
||||
Deprecation::notice('3.0', 'Use DataList::create and DataList to do your querying instead.');
|
||||
$dataList = DataObject::get($this->class, $filter, $sort, $join, $limit);
|
||||
return $dataList->dataQuery()->query();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return all objects matching the filter
|
||||
* sub-classes are automatically selected and included
|
||||
|
Loading…
x
Reference in New Issue
Block a user