gt() 공개 메소드

Specify $gt criteria for the current field.
또한 보기: Builder::gt()
또한 보기: http://docs.mongodb.org/manual/reference/operator/gt/
public gt ( mixed $value )
$value mixed
예제 #1
0
파일: Match.php 프로젝트: doctrine/mongodb
 /**
  * Specify $gt criteria for the current field.
  *
  * @see Expr::gt()
  * @see http://docs.mongodb.org/manual/reference/operator/gt/
  * @param mixed $value
  * @return $this
  */
 public function gt($value)
 {
     $this->query->gt($value);
     return $this;
 }
예제 #2
0
 /**
  * Specify $gt criteria for the current field.
  *
  * @see Expr::gt()
  * @see http://docs.mongodb.org/manual/reference/operator/gt/
  * @param mixed $value
  * @return self
  */
 public function gt($value)
 {
     $this->expr->gt($value);
     return $this;
 }
예제 #3
0
파일: ExprTest.php 프로젝트: im286er/ent
 public function testPullWithExpression()
 {
     $expr = new Expr();
     $nestedExpr = new Expr();
     $nestedExpr->gt(3);
     $this->assertSame($expr, $expr->field('a')->pull($nestedExpr));
     $this->assertEquals(array('$pull' => array('a' => array('$gt' => 3))), $expr->getNewObj());
 }