mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE Removed DataObjectSet->append(), use DataObjectSet->push() or DataObjectSet->merge()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64378 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
079b491f2e
commit
0199294864
@ -401,16 +401,6 @@ class DataObjectSet extends ViewableData implements IteratorAggregate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use merge() or push()
|
|
||||||
*/
|
|
||||||
public function append(DataObjectSet $doset){
|
|
||||||
user_error('DataObjectSet::append() is deprecated. Use DataObjectSet::merge() instead.', E_USER_NOTICE);
|
|
||||||
foreach($doset as $item){
|
|
||||||
$this->push($item);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Insert a DataObject at the beginning of this set.
|
* Insert a DataObject at the beginning of this set.
|
||||||
* @param DataObject $item Item to insert.
|
* @param DataObject $item Item to insert.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user