mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Removing deprecated container class argument to DataObject::get()
This commit is contained in:
parent
3a198c32d5
commit
e1c5f084ad
@ -2666,13 +2666,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Todo: Determine if we can deprecate for 3.0.0 and use DI or something instead
|
||||
// Todo: Make the $containerClass method redundant
|
||||
if($containerClass != 'DataList') {
|
||||
Deprecation::notice('3.0', 'DataObject::get() - $containerClass argument is deprecated.',
|
||||
Deprecation::SCOPE_GLOBAL);
|
||||
}
|
||||
|
||||
$result = DataList::create($callerClass)->where($filter)->sort($sort);
|
||||
|
||||
if($limit && strpos($limit, ',') !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user