Open Arzaroth opened 4 years ago
If one uses methods from the Query class that don't return the Query object through __call when dealing with a relation object, it becomes unusable.
This PR aims to fix that.
The test provided illustrate one of the cases in which this could happen (namely, ordering a hasMany relation before retrieving the first item).
If one uses methods from the Query class that don't return the Query object through __call when dealing with a relation object, it becomes unusable.
This PR aims to fix that.
The test provided illustrate one of the cases in which this could happen (namely, ordering a hasMany relation before retrieving the first item).