mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Removing deprecated DataObject::setComponent()
This is not used internally any longer
This commit is contained in:
parent
3108dea2c2
commit
5f852ae7bc
@ -1454,20 +1454,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
return 'ParentID';
|
return 'ParentID';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the component of a relationship.
|
|
||||||
* This should only need to be called internally,
|
|
||||||
* and is mainly due to the caching logic in {@link getComponents()}
|
|
||||||
* and {@link getManyManyComponents()}.
|
|
||||||
*
|
|
||||||
* @param string $componentName Name of the component
|
|
||||||
* @param DataObject|HasManyList|ManyManyList $componentValue Value of the component
|
|
||||||
* @deprecated 3.0 Not used internally anymore.
|
|
||||||
*/
|
|
||||||
public function setComponent($componentName, $componentValue) {
|
|
||||||
Deprecation::notice('3.0', 'Not used internally anymore.');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a many-to-many component, as a ManyManyList.
|
* Returns a many-to-many component, as a ManyManyList.
|
||||||
* @param string $componentName Name of the many-many component
|
* @param string $componentName Name of the many-many component
|
||||||
|
Loading…
x
Reference in New Issue
Block a user