Doctrine\MongoDB\Query\Builder::remove PHP Method

remove() public method

Change the query type to remove.
public remove ( )
    public function remove()
    {
        $this->query['type'] = Query::TYPE_REMOVE;
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @param string $documentName
  * @return Builder
  */
 public function remove($documentName = null)
 {
     $this->setDocumentName($documentName);
     parent::remove();
     return $this;
 }