Doctrine\MongoDB\Query\Expr::pullAll PHP Method

pullAll() public method

Remove all elements matching any of the given values from the current array field.
See also: Builder::pullAll()
See also: http://docs.mongodb.org/manual/reference/operator/pullAll/
public pullAll ( array $values )
$values array
    public function pullAll(array $values)
    {
        $this->requiresCurrentField();
        $this->newObj['$pullAll'][$this->currentField] = $values;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Remove all elements matching any of the given values from the current
  * array field.
  *
  * @see Expr::pullAll()
  * @see http://docs.mongodb.org/manual/reference/operator/pullAll/
  * @param array $values
  * @return self
  */
 public function pullAll(array $values)
 {
     $this->expr->pullAll($values);
     return $this;
 }