| @@ 600-611 (lines=12) @@ | ||
| 597 | * @param QueryCompiler $compiler |
|
| 598 | * @return string |
|
| 599 | */ |
|
| 600 | protected function updateStatement(array $columns, QueryCompiler $compiler = null) |
|
| 601 | { |
|
| 602 | if (empty($compiler)) { |
|
| 603 | $compiler = $this->compiler->resetQuoter(); |
|
| 604 | } |
|
| 605 | ||
| 606 | $this->loader->configureSelector($this, false); |
|
| 607 | ||
| 608 | return $compiler->compileUpdate( |
|
| 609 | "{$this->primaryTable()} AS {$this->primaryAlias()}", $columns, $this->whereTokens |
|
| 610 | ); |
|
| 611 | } |
|
| 612 | ||
| 613 | /** |
|
| 614 | * Create delete statement based on WHERE statement provided by Selector. |
|
| @@ 619-630 (lines=12) @@ | ||
| 616 | * @param QueryCompiler $compiler |
|
| 617 | * @return string |
|
| 618 | */ |
|
| 619 | protected function deleteStatement(QueryCompiler $compiler = null) |
|
| 620 | { |
|
| 621 | if (empty($compiler)) { |
|
| 622 | $compiler = $this->compiler->resetQuoter(); |
|
| 623 | } |
|
| 624 | ||
| 625 | $this->loader->configureSelector($this, false); |
|
| 626 | ||
| 627 | return $compiler->compileDelete( |
|
| 628 | "{$this->primaryTable()} AS {$this->primaryAlias()}", $this->whereTokens |
|
| 629 | ); |
|
| 630 | } |
|
| 631 | } |
|