Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit 0c00220

Browse files
author
Nik Barham
committed
I'm a moron. Final fix (hopefully)
1 parent 2cae067 commit 0c00220

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Automatorm/Orm/Data.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ public function join($var, array $where = [])
378378

379379
$query = new Core\Query($this->database);
380380
$query_options = new Core\QueryOptions;
381-
$query_options->join(Schema::underscoreCase($pivot['connections'][0]['table']).' pivotjoin', ['id' => '`pivot`.`' . $pivot['connections'][0]['column'].'`']);
381+
$query_options->join(Schema::underscoreCase($pivot['connections'][0]['table']).' pivotjoin', ['id' => new SqlString('`pivot`.`' . $pivot['connections'][0]['column'].'`')]);
382382

383383
$clauses = [];
384384
if ($where) foreach ($where as $clause_column => $clause_value)
@@ -464,7 +464,7 @@ public function joinCount($var, $where = [])
464464

465465
$query = new Core\Query($this->database);
466466
$query_options = new Core\QueryOptions;
467-
$query_options->join(Schema::underscoreCase($pivot['connections'][0]['table']).' pivotjoin', ['id' => '`pivot`.`' . $pivot['connections'][0]['column'].'`']);
467+
$query_options->join(Schema::underscoreCase($pivot['connections'][0]['table']).' pivotjoin', ['id' => new SqlString('`pivot`.`' . $pivot['connections'][0]['column'].'`')]);
468468

469469
$clauses = [];
470470
if ($where) foreach ($where as $clause_column => $clause_value)

0 commit comments

Comments
 (0)