Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
bohanyang committed Sep 6, 2023
1 parent ff3ef50 commit 938cacd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/mango/Tests/DoctrineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,11 @@ public function testBasics()
], $q->fetchAllAssociative());

$q = $schema->createQuery();
$q->selectFrom([PostsTable::NAME, 'p'], 'title')
->joinOn([GroupTable::NAME, 'g'], 'id', 'group_id', null)
->where($q->eq('id', 2));
$q->from(PostsTable::NAME, 'p')
->select('title')
->where(title: 'post 2')
->addInnerJoin([GroupTable::NAME, 'g'], ['group_id', 'id'])
->where(id: 2);
$this->assertEqualsCanonicalizing([
[
'p' => ['title' => 'post 2'],
Expand Down

0 comments on commit 938cacd

Please sign in to comment.