exists() публичный Метод

Specify $exists criteria for the current field.
См. также: Builder::exists()
См. также: http://docs.mongodb.org/manual/reference/operator/exists/
public exists ( boolean $bool )
$bool boolean
Пример #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;
 }