@@ 1732-1739 (lines=8) @@ | ||
1729 | * @param string $documentName |
|
1730 | * @return $this |
|
1731 | */ |
|
1732 | public function updateOne($documentName = null) |
|
1733 | { |
|
1734 | $this->setDocumentName($documentName); |
|
1735 | $this->query['type'] = Query::TYPE_UPDATE; |
|
1736 | $this->query['multiple'] = false; |
|
1737 | ||
1738 | return $this; |
|
1739 | } |
|
1740 | ||
1741 | /** |
|
1742 | * @param string $documentName |
|
@@ 1745-1752 (lines=8) @@ | ||
1742 | * @param string $documentName |
|
1743 | * @return $this |
|
1744 | */ |
|
1745 | public function updateMany($documentName = null) |
|
1746 | { |
|
1747 | $this->setDocumentName($documentName); |
|
1748 | $this->query['type'] = Query::TYPE_UPDATE; |
|
1749 | $this->query['multiple'] = true; |
|
1750 | ||
1751 | return $this; |
|
1752 | } |
|
1753 | ||
1754 | /** |
|
1755 | * Set the "upsert" option for an update or findAndUpdate query. |