andersao / andersao/l5-repository

Apply criteria on 'with' relation

Đang mở
#163 6 bình luận 4 reaction 0 người được giao Xem trên GitHub
enhancement idea verify
Ngôn ngữ chính
PHP
Star
4.2k
Fork
880
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

say we have this query:

``` php
$posts = $this->PostRepository->with('comments')->all();
```

if there is a criteria class out there for `CommentRepository` it wont be applied because `with` will refer to Model not it's repository. so how should i apply criteria to models called by `with` ?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.