| @@ 831-840 (lines=10) @@ | ||
| 828 | * |
|
| 829 | * @return self |
|
| 830 | */ |
|
| 831 | public function delete($delete = null, $alias = null) |
|
| 832 | { |
|
| 833 | $this->_type = self::DELETE; |
|
| 834 | ||
| 835 | if ( ! $delete) { |
|
| 836 | return $this; |
|
| 837 | } |
|
| 838 | ||
| 839 | return $this->add('from', new Expr\From($delete, $alias)); |
|
| 840 | } |
|
| 841 | ||
| 842 | /** |
|
| 843 | * Turns the query being built into a bulk update query that ranges over |
|
| @@ 858-867 (lines=10) @@ | ||
| 855 | * |
|
| 856 | * @return self |
|
| 857 | */ |
|
| 858 | public function update($update = null, $alias = null) |
|
| 859 | { |
|
| 860 | $this->_type = self::UPDATE; |
|
| 861 | ||
| 862 | if ( ! $update) { |
|
| 863 | return $this; |
|
| 864 | } |
|
| 865 | ||
| 866 | return $this->add('from', new Expr\From($update, $alias)); |
|
| 867 | } |
|
| 868 | ||
| 869 | /** |
|
| 870 | * Creates and adds a query root corresponding to the entity identified by the given alias, |
|