Add pagination to hasMany