Skip to content

Commit ed8c2db

Browse files
committed
Update join examples in READEME.md
Updated the examples for the different joins to reflect the new `$tableAs` variable in the functions
1 parent 63aa7f5 commit ed8c2db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,16 @@ create('profile',
8787
---
8888

8989
innerJoin(string $leftTable = null, string $rightTable = null,
90-
string $leftColumn = null, string $rightColumn = null, $condition = EQ);
90+
string $leftColumn = null, string $rightColumn = null, string $tableAs = null, $condition = EQ);
9191

9292
leftJoin(string $leftTable = null, string $rightTable = null,
93-
string $leftColumn = null, string $rightColumn = null, $condition = EQ);
93+
string $leftColumn = null, string $rightColumn = null, string $tableAs = null, $condition = EQ);
9494

9595
rightJoin(string $leftTable = null, string $rightTable = null,
96-
string $leftColumn = null, string $rightColumn = null, $condition = EQ);
96+
string $leftColumn = null, string $rightColumn = null, string $tableAs = null, $condition = EQ);
9797

9898
fullJoin(string $leftTable = null, string $rightTable = null,
99-
string $leftColumn = null, string $rightColumn = null, $condition = EQ);
99+
string $leftColumn = null, string $rightColumn = null, string $tableAs = null, $condition = EQ);
100100
---
101101

102102
```php
@@ -178,7 +178,7 @@ foreach ($result as $row) {
178178
$result = $db->selecting('profile', 'name, email',
179179
// Conditionals can also be called, stacked with other functions like:
180180
// innerJoin(), leftJoin(), rightJoin(), fullJoin()
181-
// as (leftTable, rightTable, leftColumn, rightColumn, equal condition),
181+
// as (leftTable, rightTable, leftColumn, rightColumn, tableAs, equal condition),
182182
// where( eq( columns, values, _AND ), like( columns, _d ) ),
183183
// groupBy( columns ),
184184
// having( between( columns, values1, values2 ) ),

0 commit comments

Comments
 (0)