Comments (4)
Did you notice 'stream_name' => 'user_stream'
on that second link? That user_stream' should go into the doctrine config
stream_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.
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.
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.
That helps a lot. Thanks. Counting of publishing documentation. 👍
from event-store-doctrine-adapter.
Related Issues (11)
- Adjust adapter to support prooph/event-store 5.0
- Throw exception if client wants to begin second transaction HOT 4
- Force datetime format to include microseconds
- Update to coveralls ^1.0
- DoctrineEventStoreAdapterFactory doesn't implement dimensions()
- Memory problem when replaying large streams HOT 9
- Schema files not in sync HOT 2
- Transaction handling HOT 3
- TableNotFoundException for existing table HOT 2
- event_name to short HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from event-store-doctrine-adapter.