mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4468 from tractorcow/pulls/3.2/cache-has-one
fixing has_one cache to use get_one rather byID
This commit is contained in:
commit
dbc88f8ebf
@ -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…
Reference in New Issue
Block a user