Download the PHP package becklyn/ddd-doctrine-bridge without Composer
On this page you can find all versions of the php package becklyn/ddd-doctrine-bridge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download becklyn/ddd-doctrine-bridge
More information about becklyn/ddd-doctrine-bridge
Files in becklyn/ddd-doctrine-bridge
Package ddd-doctrine-bridge
Short Description Doctrine implementation of event store and transaction manager for use with becklyn/ddd-core
License MIT
Informations about the package ddd-doctrine-bridge
becklyn/ddd-doctrine-bridge provides Doctrine ORM implementations for the event store and transaction manager interfaces found in becklyn/ddd-core. The library is independent from any technology platform other than Doctrine, but we also provide the becklyn/ddd-symfony-bridge library for use within a Symfony application.
How To
See becklyn/ddd-core documentation for how to use the components provided by the libraries.
Setting Up the Event Store
Without using the becklyn/ddd-symfony-bridge library you will have to integrate the event store with your application yourself. Aside from the event store implementation, this library provides Doctrine ORM mappings for it in both XML and annotation formats, as well as a Doctrine Migrations 3 migration to set up the database tables.
Microseconds in Event Timestamps
To have Doctrine ORM 2 persist microseconds in the database as part of the timestamp representing when an event has been raised, you need to register the DateTimeImmutableMicrosecondsType
class with Doctrine DBAL as an override for the datetime_immutable
type. It should ideally be done during bootstrapping, for example:
Only MySQL and Oracle are currently supported. For MySQL, this should no longer be necessary with Doctrine ORM 3 as it should incorporate this feature natively. For Oracle, activating the \Becklyn\Ddd\DateTime\Infrastructure\Doctrine\MicrosecondsOracleSessionInit
Doctrine listener is required as well.
All versions of ddd-doctrine-bridge with dependencies
becklyn/ddd-core Version ^3.0 || ^4.0
doctrine/migrations Version ^3.0
doctrine/orm Version ^2.9
doctrine/persistence Version ^2.0||^3.0
illuminate/collections Version ^8.12 || ^9.0
ramsey/uuid Version ^4.0
symfony/serializer Version ^5.4 || ^6.0