Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
Open up stages in builder for use in ODM
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus committed Jan 13, 2016
1 parent 7b4d519 commit 48134d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/MongoDB/Aggregation/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Builder
/**
* @var Stage[]
*/
private $stages;
protected $stages = [];

/**
* Create a new aggregation builder.
Expand Down Expand Up @@ -303,7 +303,7 @@ public function unwind($fieldName)
* @param Stage $stage
* @return Stage
*/
private function addStage(Stage $stage)
protected function addStage(Stage $stage)
{
$this->stages[] = $stage;

Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/MongoDB/Aggregation/Stage/Match.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(Builder $builder)
{
parent::__construct($builder);

$this->query = new Expr();
$this->query = $this->expr();
}

/**
Expand Down

0 comments on commit 48134d7

Please sign in to comment.