Skip to content
Snippets Groups Projects
Commit b506684e authored by Simonas Šerlinskas's avatar Simonas Šerlinskas Committed by GitHub
Browse files

Merge pull request #140 from tchiotludo/tchiotludo-patch-1

Allow chaining of aggregation
parents 0130783e 8288d1e4
No related merge requests found
......@@ -76,6 +76,8 @@ abstract class AbstractAggregation implements BuilderInterface
* Adds a sub-aggregation.
*
* @param AbstractAggregation $abstractAggregation
*
* @return $this
*/
public function addAggregation(AbstractAggregation $abstractAggregation)
{
......@@ -84,6 +86,8 @@ abstract class AbstractAggregation implements BuilderInterface
}
$this->aggregations->add($abstractAggregation);
return $this;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment