Commit 37f3a400 by Alexander Kochetov

ActiveRecord::getRelation() bugfix

parent dd596914
......@@ -1131,8 +1131,8 @@ class ActiveRecord extends Model
return $relation;
}
} 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 . '".');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment