prooph / event-store-doctrine-adapter
Doctrine Adapter for ProophEventStore
Installs: 55 153
Dependents: 5
Suggesters: 1
Security: 0
Stars: 13
Watchers: 9
Forks: 7
Open Issues: 0
Requires
- php: ~5.5|~7.0
- beberlei/assert: ^2.3
- doctrine/dbal: ^2.5
- prooph/common: ^3.7
- prooph/event-store: ^6.3
Requires (Dev)
- container-interop/container-interop: ^1.1
- fabpot/php-cs-fixer: 1.7.*
- phpunit/phpunit: ^4.8
- sandrokeil/interop-config: ^1.0
- satooshi/php-coveralls: ^1.0
- sebastian/comparator: ^1.2
Suggests
- container-interop/container-interop: For usage of provided factories
- sandrokeil/interop-config: For usage of provided factories
Conflicts
This package is auto-updated.
Last update: 2024-10-17 01:14:50 UTC
README
#CAUTION: The Doctrine adapter is not compatible With prooph/event-store v7. Use the new PDO Event Store instead! Support for the adapter will end at 31 December 2017.
Use Prooph Event Store with Doctrine DBAL.
Database Set Up
The database structure depends on the stream strategies you want to use for your aggregate roots. You can find example SQLs for MySql in the scripts folder and an EventStoreSchema tool which you can use an a doctrine migrations scirpt.
The database schema is only a suggestion. The
aggregate_type
column has a length of 150 chars. If you have very long class names you should increase this length, otherwise it could lead to errors in your application. This length should be equal with theaggregate_type
length in the snapshot table.
Limitations
When using MySQL while enabling oneStreamPerAggregate
option, the transaction handling is broken!
For more information see: prooph/pdo-event-store#6
Requirements
- PHP >= 5.5
- Doctrine DBAL ^2.4
- Prooph Event Store ^5.0
License
Released under the New BSD License.