mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Extend deprecation of DataObject::Aggregate() and RelationshipAggregate()
This commit is contained in:
parent
0db33f7f04
commit
dde820d87d
@ -2689,10 +2689,10 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.0 Use DataList::create and DataList to do your querying
|
||||
* @deprecated 3.1 Use DataList::create and DataList to do your querying
|
||||
*/
|
||||
public function Aggregate($class = null) {
|
||||
Deprecation::notice('3.0', 'Call aggregate methods on a DataList directly instead. In templates'
|
||||
Deprecation::notice('3.1', 'Call aggregate methods on a DataList directly instead. In templates'
|
||||
. ' an example of the new syntax is <% cached List(Member).max(LastEdited) %> instead'
|
||||
. ' (check partial-caching.md documentation for more details.)');
|
||||
|
||||
@ -2710,10 +2710,10 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 3.0 Use DataList::create and DataList to do your querying
|
||||
* @deprecated 3.1 Use DataList::create and DataList to do your querying
|
||||
*/
|
||||
public function RelationshipAggregate($relationship) {
|
||||
Deprecation::notice('3.0', 'Call aggregate methods on a relationship directly instead.');
|
||||
Deprecation::notice('3.1', 'Call aggregate methods on a relationship directly instead.');
|
||||
|
||||
return $this->$relationship();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user