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