示例#1
0
文件: Builder.php 项目: cosmow/riak
 /**
  * Return the expression's query criteria.
  *
  * @see Expr::getQuery()
  * @return array
  */
 public function getQueryArray()
 {
     return $this->expr->getQuery();
 }
示例#2
0
文件: Expr.php 项目: cosmow/riak
 /**
  * Negates an expression for the current field.
  *
  * @see Builder::not()
  * @see http://docs.mongodb.org/manual/reference/operator/not/
  * @param array|Expr $expression
  * @return self
  */
 public function not($expression)
 {
     return $this->operator('$not', $expression instanceof Expr ? $expression->getQuery() : $expression);
 }
示例#3
0
文件: Match.php 项目: cosmow/riak
 /**
  * {@inheritdoc}
  */
 public function getExpression()
 {
     return array('$match' => $this->query->getQuery());
 }