ActiveRecord::getRelation() bugfix

This commit is contained in:
Alexander Kochetov
2013-05-07 18:36:38 +04:00
parent dd5969147d
commit 37f3a400cd

View File

@ -1131,8 +1131,8 @@ class ActiveRecord extends Model
return $relation; return $relation;
} }
} catch (UnknownMethodException $e) { } catch (UnknownMethodException $e) {
throw new InvalidParamException(get_class($this) . ' has no relation named "' . $name . '".');
} }
throw new InvalidParamException(get_class($this) . ' has no relation named "' . $name . '".');
} }
/** /**