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:
John Milmine 2015-08-01 15:55:31 +12:00 committed by Damian Mooyman
parent 1532eeb69e
commit a6fdcd238a

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