File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ protected function getWhereClauses() : string
76
76
$ value = $ where ['value ' ] ?? implode ('_ ' , ($ where ['values ' ] ?? []));
77
77
78
78
if (! $ value ) {
79
- return '' ;
79
+ return $ carry . '' ;
80
80
}
81
81
82
82
return "{$ carry }- {$ where ['column ' ]}_ {$ value }" ;
Original file line number Diff line number Diff line change @@ -440,10 +440,10 @@ public function testNestedRelationshipEagerloading()
440
440
$ this ->assertEmpty ($ liveResults ->diffAssoc ($ cachedResults ));
441
441
}
442
442
443
- public function testNonEagerloadedRelationshipResolvesThroughCachedBuilder ()
443
+ public function testLazyLoadedRelationshipResolvesThroughCachedBuilder ()
444
444
{
445
445
$ books = (new Author )->first ()->books ;
446
- $ key = 'genealabslaravelmodelcachingtestsfixturesbook-books.author_id_1-books.author_id_ ' ;
446
+ $ key = 'genealabslaravelmodelcachingtestsfixturesbook-books.author_id_1 ' ;
447
447
$ tags = [
448
448
'genealabslaravelmodelcachingtestsfixturesbook ' ,
449
449
];
@@ -458,7 +458,7 @@ public function testNonEagerloadedRelationshipResolvesThroughCachedBuilder()
458
458
public function testLazyLoadingOnResourceIsCached ()
459
459
{
460
460
$ books = (new AuthorResource ((new Author )->first ()))->books ;
461
- $ key = 'genealabslaravelmodelcachingtestsfixturesbook-books.author_id_1-books.author_id_ ' ;
461
+ $ key = 'genealabslaravelmodelcachingtestsfixturesbook-books.author_id_1 ' ;
462
462
$ tags = [
463
463
'genealabslaravelmodelcachingtestsfixturesbook ' ,
464
464
];
@@ -469,5 +469,4 @@ public function testLazyLoadingOnResourceIsCached()
469
469
$ this ->assertEmpty ($ books ->diffAssoc ($ cachedResults ));
470
470
$ this ->assertEmpty ($ liveResults ->diffAssoc ($ cachedResults ));
471
471
}
472
-
473
472
}
You can’t perform that action at this time.
0 commit comments