Skip to content

Commit 74a7dcf

Browse files
sum-projectsJakub Sumara
andauthored
Adds rawLeftJoin for DatabaseSelectBuilder (#30)
Co-authored-by: Jakub Sumara <jakub.sumara@gowork.pl>
1 parent 09adf98 commit 74a7dcf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/DatabaseSelectBuilder.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ public function leftJoin(Table $join, string $condition): self
9999
return $copy;
100100
}
101101

102+
public function rawLeftJoin(string $from, string $join, string $alias, string $condition): self
103+
{
104+
$this->assertCanJoin();
105+
106+
$copy = clone $this;
107+
$copy->builder->leftJoin($from, $join, $alias, $condition);
108+
109+
return $copy;
110+
}
111+
102112
public function rightJoin(Table $join, string $condition): self
103113
{
104114
$this->assertCanJoin();

0 commit comments

Comments
 (0)