anyElementTrue() public méthode

The expression must resolve to an array.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/anyElementTrue/
public anyElementTrue ( array | self $expression )
$expression array | self
Exemple #1
0
 /**
  * Evaluates an array as a set and returns true if any of the elements are
  * true and false otherwise. An empty array returns false.
  *
  * The expression must resolve to an array.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/anyElementTrue/
  * @see Expr::anyElementTrue
  * @param array|Expr $expression
  * @return self
  */
 public function anyElementTrue($expression)
 {
     $this->expr->anyElementTrue($expression);
     return $this;
 }