Correcting class name for missing relation exception

This commit is contained in:
Chris Harvey 2014-12-10 11:34:05 +00:00
parent cfac213217
commit 78fb9fb110

View File

@ -73,7 +73,7 @@ class Relation extends FormWidgetBase
if (!$this->model->hasRelation($this->relationName)) {
throw new SystemException(Lang::get(
'backend::lang.model.missing_relation',
['class'=>get_class($this->controller), 'relation'=>$this->relationName]
['class'=>get_class($this->model), 'relation'=>$this->relationName]
));
}
}