mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
fixing has_one cache to use get_one rather byID
This helps becuase it uses the get_one internal Dataobject cache
This commit is contained in:
parent
1532eeb69e
commit
a6fdcd238a
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user