This repository was archived by the owner on Jul 16, 2023. It is now read-only.
Commit 93b2114
committed
Leaving glocal scopes to be applied by Eloquent
Closes #245 and finally fixes #281
newQuery() is used to both create a Builder and apply scopes. This was being
overridden so we could use our own Builder, but it brings more tasks inside
the same overridden method. Thus, we now override newQueryWithoutScopes()
that is indeed the main builder-instantiator, and leave scopes for Eloquent.1 parent 41c4be5 commit 93b2114
1 file changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
389 | | - | |
| 390 | + | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| |||
935 | 936 | | |
936 | 937 | | |
937 | 938 | | |
938 | | - | |
| 939 | + | |
939 | 940 | | |
940 | | - | |
| 941 | + | |
941 | 942 | | |
942 | 943 | | |
943 | | - | |
| 944 | + | |
944 | 945 | | |
945 | 946 | | |
946 | 947 | | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
| 948 | + | |
953 | 949 | | |
954 | 950 | | |
955 | 951 | | |
| |||
0 commit comments