mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Add extension hook for getManyManyComponents()
Call extension after DataModel is set
This commit is contained in:
parent
04f96da453
commit
b5f88af1f0
@ -1771,8 +1771,11 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
$componentClass, $table, $componentField, $parentField,
|
||||
$this->manyManyExtraFieldsForComponent($componentName)
|
||||
);
|
||||
|
||||
if($this->model) $result->setDataModel($this->model);
|
||||
|
||||
$this->extend('updateManyManyComponents', $result);
|
||||
|
||||
// If this is called on a singleton, then we return an 'orphaned relation' that can have the
|
||||
// foreignID set elsewhere.
|
||||
return $result
|
||||
|
Loading…
Reference in New Issue
Block a user