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:
Sam Minnée 2015-08-03 13:50:52 +12:00
commit dbc88f8ebf

View File

@ -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)) {