eventsauce/doctrine-message-repository

This package is abandoned and no longer maintained. The author suggests using the eventsauce/message-repository-for-doctrine package instead.

Doctrine Message Repository for EventSauce

0.8.3 2021-01-14 21:06 UTC

This package is auto-updated.

Last update: 2021-07-25 13:00:49 UTC


README

⚠️ This repository is abandoned in favor of the newer eventsauce/message-repository-for-doctrine library.

use Doctrine\DBAL\Connection;
use EventSauce\DoctrineMessageRepository\DoctrineMessageRepository;
use EventSauce\EventSourcing\Serialization\MessageSerializer;

/** @var Connection $doctrineConnection */
$doctrineConnection = setup_doctrine_connection();
/** @var MessageSerializer $messageSerializer */
$messageSerializer = setup_message_serializer();
$messageRepository = new DoctrineMessageRepository(
    $doctrineConnection,
    $messageSerializer,
    'your_table_name',
);

Next step: Use it when bootstrapping your aggregate root repository

For the schema used for this repository, see: