Doctrine\MongoDB\Query\Builder::push PHP 메소드

push() 공개 메소드

If the field does not exist, it will be set to an array containing the value(s) in the argument. If the field is not an array, the query will yield an error. Multiple values may be specified by providing an Expr object and using {@link Expr::each()}. {@link Expr::slice()} and {@link Expr::sort()} may also be used to limit and order array elements, respectively.
또한 보기: Expr::push()
또한 보기: http://docs.mongodb.org/manual/reference/operator/push/
또한 보기: http://docs.mongodb.org/manual/reference/operator/each/
또한 보기: http://docs.mongodb.org/manual/reference/operator/slice/
또한 보기: http://docs.mongodb.org/manual/reference/operator/sort/
public push ( mixed | Expr $valueOrExpression )
$valueOrExpression mixed | Expr
    public function push($valueOrExpression)
    {
        $this->expr->push($valueOrExpression);
        return $this;
    }