This repository was archived by the owner on May 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ public function join($var, array $where = [])
378
378
379
379
$ query = new Core \Query ($ this ->database );
380
380
$ 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 ' ].'` ' ) ]);
382
382
383
383
$ clauses = [];
384
384
if ($ where ) foreach ($ where as $ clause_column => $ clause_value )
@@ -464,7 +464,7 @@ public function joinCount($var, $where = [])
464
464
465
465
$ query = new Core \Query ($ this ->database );
466
466
$ 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 ' ].'` ' ) ]);
468
468
469
469
$ clauses = [];
470
470
if ($ where ) foreach ($ where as $ clause_column => $ clause_value )
You can’t perform that action at this time.
0 commit comments