Skip to content

Commit

Permalink
add using
Browse files Browse the repository at this point in the history
  • Loading branch information
gam6itko committed May 25, 2024
1 parent c7c92eb commit 5a7d926
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public function testSelect(): void
{
$select = $this->orm->getRepository(Country::class)
->select()
->load('translations')
->where('is_friendly', true)
// User wants to search everywhere
->with('translations', [
Expand All @@ -54,7 +53,10 @@ public function testSelect(): void
],
'alias' => 'trans2',
])
->orderBy('transEn.title', 'asc');
->orderBy('transEn.title', 'asc')
->load('translations', [
'using' => 'trans',
]);

$this->assertExpectedSql($select);

Expand Down

0 comments on commit 5a7d926

Please sign in to comment.