Skip to content

Commit

Permalink
SqlBuilder: added method resetSelect (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdaCZ authored and dg committed Sep 30, 2018
1 parent 47e674e commit 960b341
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Database/Table/SqlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,13 @@ public function getSelect(): array
}


public function resetSelect(): void
{
$this->select = [];
$this->parameters['select'] = [];
}


public function addWhere($condition, ...$params): bool
{
return $this->addCondition($condition, $params, $this->where, $this->parameters['where']);
Expand Down

0 comments on commit 960b341

Please sign in to comment.