fixes #5020 pagination issues on HasManyThrough returing intermediate ta...

fixes #5020 by adding a paginate method to the relation