last() 공개 메소드

Only meaningful when documents are in a defined order.
또한 보기: http://docs.mongodb.org/manual/reference/operator/aggregation/last/
public last ( mixed | self $expression )
$expression mixed | self
예제 #1
0
파일: Group.php 프로젝트: Wizkunde/mongodb
 /**
  * Returns the value that results from applying an expression to the last
  * document in a group of documents that share the same group by a field.
  * Only meaningful when documents are in a defined order.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/last/
  * @see Expr::last
  * @param mixed|Expr $expression
  * @return Operator
  */
 public function last($expression)
 {
     $this->expr->last($expression);
     return $this;
 }