Configure Repository
Repository for State-Stored Aggregate
interface StandardRepository
{
1 public function canHandle(string $aggregateClassName): bool;
2 public function findBy(string $aggregateClassName, array $identifiers) : ?object;
3 public function save(array $identifiers, object $aggregate, array $metadata, ?int $expectedVersion): void;
}Set up your own Implementation
Example implementation using Doctrine ORM
Using Multiple Repositories
Repository for Event Sourced Aggregate
Last updated
Was this helpful?