Doctrine\MongoDB\Query\Expr::popLast PHP Метод

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

Remove the last element from the current array field.
См. также: Builder::popLast()
См. также: http://docs.mongodb.org/manual/reference/operator/pop/
public popLast ( )
    public function popLast()
    {
        $this->requiresCurrentField();
        $this->newObj['$pop'][$this->currentField] = -1;
        return $this;
    }

Usage Example

Пример #1
0
 /**
  * Remove the last element from the current array field.
  *
  * @see Expr::popLast()
  * @see http://docs.mongodb.org/manual/reference/operator/pop/
  * @return self
  */
 public function popLast()
 {
     $this->expr->popLast();
     return $this;
 }