Skip to content

Commit

Permalink
change to greater than equals for version matching
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Jan 22, 2017
1 parent d6b333b commit f5ef825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractAggregateDefiniton.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function metadataMatcher(string $aggregateId, int $aggregateVersion): ?Me
->withMetadataMatch('_aggregate_type', Operator::EQUALS(), $this->aggregateType())

// this is only required when using one stream per aggregate type
->withMetadataMatch('_aggregate_version', Operator::EQUALS(), $aggregateVersion);
->withMetadataMatch('_aggregate_version', Operator::GREATER_THAN_EQUALS(), $aggregateVersion);
}

public function metadataEnricher(string $aggregateId, int $aggregateVersion): ?MetadataEnricher
Expand Down

0 comments on commit f5ef825

Please sign in to comment.