We can see a `flush` method at [DoctrineRepository.php#L31](https://github.com/CodelyTV/php-ddd-example/blob/main/src/Shared/Infrastructure/Persistence/Doctrine/DoctrineRepository.php#L31). According to [this post](https://www.thinktocode.com/2019/01/24/doctrine-repositories-should-be-collections-without-flush/), Doctrine repositories should be collections without flush.