findAndRemove() public method

Change the query type to findAndRemove (uses the findAndModify command).
See also: http://docs.mongodb.org/manual/reference/command/findAndModify/
public findAndRemove ( )
Exemplo n.º 1
0
 /**
  * @param string $documentName
  * @return Builder
  */
 public function findAndRemove($documentName = null)
 {
     $this->setDocumentName($documentName);
     parent::findAndRemove();
     return $this;
 }