Giter Site home page Giter Site logo

Comments (4)

basz avatar basz commented on June 16, 2024 1

Did you notice 'stream_name' => 'user_stream' on that second link? That user_stream' should go into the doctrine configstream_table_map`. And is is how the doctrine adapter knows how to use what table for streams.

And why nowhere i could find information about proophessor-do. When you mentioned this, i look for that.

We are aware we should create additional documentation. Not sure if it is currently actively worked on, but there are some plans...

Do you know about https://gitter.im/prooph/improoph ? That's an active chat your welcome to ask anything...

Here a copy of some of my configuration;

    'prooph'    => [
        'event_store'    => [
            'plugins'                                              => [
                \Prooph\EventStoreBusBridge\EventPublisher::class,
                \Prooph\EventStoreBusBridge\TransactionManager::class,
                \Prooph\Snapshotter\SnapshotPlugin::class,
            ],
            // repeat for every aggregate 
            \Domain\Identity\Aggregate\User::class        => [
                'repository_class'         => \Infrastructure\Repository\Identity\UserRepository::class,
                'aggregate_type'           => \Domain\Identity\Aggregate\User::class,
                'aggregate_translator'     => \Prooph\EventSourcing\EventStoreIntegration\AggregateTranslator::class,
                'snapshot_store'           => \Prooph\EventStore\Snapshot\SnapshotStore::class,
                'stream_name'              => 'user_stream',
                // you may create multiple streams one for each aggregate. However the doctrine adapter does not support that option
                'one_stream_per_aggregate' => false,
            ],
            // more aggregates

doctrine adapter

    'prooph'    => [
        'event_store'    => [
            'adapter' => [
                'type'    => Prooph\EventStore\Adapter\Doctrine\DoctrineEventStoreAdapter::class,
                'options' => [
                    // alias to a service that creates a dbal connection or simply 'connection' with options that go into Doctrine\DBAL\DriverManager::getConnection($config['connection'])
                    'connection_alias' => 'doctrine.connection.default',

                    // mysql/pdo will load all events into memory, unless a batch size is specified (php will run out of memory otherwise)
                    'load_batch_size' => 10000,

                    // maps one or more stream names to a table names
                    'stream_table_map' => [
                        'user_stream'    => 'tablename_of_events",
                        // more mappings
                    ],
                ],
            ],
        ],

from event-store-doctrine-adapter.

basz avatar basz commented on June 16, 2024

Sure, but to get started;

A. Could you provide information about where you are stuck? Is it with this module or the event-store configuration itself?
B. Our professor-do demo application shows how to configure stuff - in the config directory.

Op 19 okt. 2016 om 16:47 heeft timiTao [email protected] het volgende geschreven:

Could you provide more detailed documentation, about how to configure this?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from event-store-doctrine-adapter.

timiTao avatar timiTao commented on June 16, 2024

Please, descripbe options that i could use in Adapter:
https://github.com/prooph/event-store-doctrine-adapter/blob/master/src/Container/DoctrineEventStoreAdapterFactory.php#L60 and other in factory than i could send via configuration to adapter
https://github.com/prooph/event-store/blob/master/docs/interop_factories.md#event-store-factory

And why nowhere i could find information about proophessor-do. When you mentioned this, i look for that.

from event-store-doctrine-adapter.

timiTao avatar timiTao commented on June 16, 2024

That helps a lot. Thanks. Counting of publishing documentation. 👍

from event-store-doctrine-adapter.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.