- Work done on insert() and update() function from QueryBuilder.

- Fixed save() and saveAll() from repository
- QueryBuilder can now be flushed after queries.
This commit is contained in:
Dave Mc Nicoll committed 2020-02-17 08:23:41 -05:00
1 parent 79fdabe786
commit d1961ec807
9 files changed
+122 -44

No files matched your search

+16 -7
View File
@@ -11,18 +11,27 @@ class Join extends Fragment {
const TYPE_CROSS = "CROSS";
const TYPE_NATURAL = "NATURAL";
public string $type = self::TYPE_INNER;
public bool $outer = false;
public array $joins = [];
public function add(string $side, string $table, string $field, $value)
{
$this->joins[] = [
'side' => $side,
'table' => $table,
'field' => $field,
'value' => $value,
];
}
public function render() : string
{
return $this->renderSegments([
$this->side,
'JOIN',
/* table here! */,
'ON',
/* WHERE ! */
#'JOIN',
# table,
# 'ON',
# WHERE ! ,
]);
}
}