@@ 1788-1795 (lines=8) @@ | ||
1785 | * @param string $documentName |
|
1786 | * @return $this |
|
1787 | */ |
|
1788 | public function updateOne($documentName = null) |
|
1789 | { |
|
1790 | $this->setDocumentName($documentName); |
|
1791 | $this->query['type'] = Query::TYPE_UPDATE; |
|
1792 | $this->query['multiple'] = false; |
|
1793 | ||
1794 | return $this; |
|
1795 | } |
|
1796 | ||
1797 | /** |
|
1798 | * @param string $documentName |
|
@@ 1801-1808 (lines=8) @@ | ||
1798 | * @param string $documentName |
|
1799 | * @return $this |
|
1800 | */ |
|
1801 | public function updateMany($documentName = null) |
|
1802 | { |
|
1803 | $this->setDocumentName($documentName); |
|
1804 | $this->query['type'] = Query::TYPE_UPDATE; |
|
1805 | $this->query['multiple'] = true; |
|
1806 | ||
1807 | return $this; |
|
1808 | } |
|
1809 | ||
1810 | /** |
|
1811 | * Set the "upsert" option for an update or findAndUpdate query. |