addOr() public méthode

Adds one or more $or clause to the current expression.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/or/
public addOr ( array | self $expression )
$expression array | self
Exemple #1
0
 /**
  * Add an $or clause to the current expression.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/or/
  * @see Expr::addOr
  * @param array|Expr $expression
  * @return self
  */
 public function addOr($expression)
 {
     $this->expr->addOr($expression);
     return $this;
 }
Exemple #2
0
 /**
  * Add one or more $or clauses to the current expression.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/or/
  * @see Expr::addOr
  * @param array|Expr $expression
  * @return $this
  */
 public function addOr($expression)
 {
     $this->expr->addOr(...func_get_args());
     return $this;
 }