implemented review findings
default-pipeline default-pipeline #188

This commit is contained in:
balazs committed 2021-05-08 23:37:36 +02:00
1 parent 899817a853
commit 3f8311d708
2 files changed
+23 -19

No files matched your search

+4 -5
View File
@@ -328,14 +328,13 @@ class Select
private function generateJoins(): array
{
$joins = $this->joins;
$joinQueries = [];
$params = [];
foreach($joins as $value) {
list($joinQueryFragment, $paramsFragment) = $this->generateTable($value[1], true);
array_push($joinQueries, $value[0] . ' JOIN ' . $joinQueryFragment . ' ON ' . $this->generateColumn($value[2]) . ' ' . $value[3] . ' ' . $this->generateColumn($value[4]));
foreach($this->joins as $join) {
list($joinQueryFragment, $paramsFragment) = $this->generateTable($join[1], true);
$joinQueries[] = $join[0] . ' JOIN ' . $joinQueryFragment . ' ON ' . $this->generateColumn($join[2]) . ' ' . $join[3] . ' ' . $this->generateColumn($join[4]);
$params = array_merge($params, $paramsFragment);
}