exists() public method

Specify $exists criteria for the current field.
See also: Builder::exists()
See also: http://docs.mongodb.org/manual/reference/operator/exists/
public exists ( boolean $bool )
$bool boolean
Beispiel #1
0
 /**
  * Specify $exists criteria for the current field.
  *
  * @see Expr::exists()
  * @see http://docs.mongodb.org/manual/reference/operator/exists/
  * @param boolean $bool
  * @return self
  */
 public function exists($bool)
 {
     $this->expr->exists((bool) $bool);
     return $this;
 }