Change the query type to findAndUpdate (uses the findAndModify command).
public findAndUpdate ( ) |
/** * @param string $documentName * @return Builder */ public function findAndUpdate($documentName = null) { $this->setDocumentName($documentName); parent::findAndUpdate(); return $this; }