diff --git a/model/DataObject.php b/model/DataObject.php index fc652bad8..4a30167ea 100644 --- a/model/DataObject.php +++ b/model/DataObject.php @@ -1535,7 +1535,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity } if($joinID) { - $component = $this->model->$class->byID($joinID); + $component = DataObject::get_by_id($class, $joinID); } if(empty($component)) {