Removing DataObject::buildSQL() and extendedSQL(), use DataList instead

This commit is contained in:
Sean Harvey 2012-11-15 11:49:35 +13:00
parent 651d4b3d41
commit 0db33f7f04

View File

@ -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