Comments (2)
This is definitely a bug. The way you want to use it is correct.
I always do it this way:
class EventSourcingProjectService extends AggregateRepository implements ProjectService
{
public function __construct(EventStore $eventStore, StreamStrategyInterface $eventStoreStrategy) {
$this->aggregateType = new AggregateType('Ora\ProjectManagement\Project');
parent::__construct($eventStore, new AggregateTranslator(), $eventStoreStrategy);
}
public function findProject($id)
{
$project = $this->getAggregateRoot($this->aggregateType, $id);
return $project;
}
}
So I have not recognized the bug. I will fix this immediatly and release a new version. Thanks for pointing it out.
from event-store.
Ok, release is available. v1.1.1 should solve the problem. The fix was already available on master. I fixed it last weekend but have forgotten to draft a new release. To much parallel work at the moment :-)
from event-store.
Related Issues (20)
- Documentation uses wrong pcntl signal? HOT 4
- Poll: What do you prefer? Server or lib? Or both? HOT 37
- Use ULID instead of autoincrement no HOT 12
- InMemoryEventStoreQuery#fromStream signature does not match interface signature (Query#fromStream) HOT 1
- Emit Enabled default configuration HOT 1
- 7.5.2 is completely breaking from 7.5.1 HOT 3
- Uncaught InvalidArgumentException: Could not create DateTimeImmutable HOT 5
- v7: interface mismatch Query, Projector & ReadModelProjector HOT 3
- Tips for database migration? HOT 7
- SEO when search for `Prooph Add Metadata` HOT 4
- Upcasting broken for projections in v7
- Let ProjectionsManager return objects instead of json-strings HOT 3
- aggregate_version conflict (ConcurrencyException) when stream on heavy load HOT 2
- Tests are missing HOT 5
- Remove further json strings from managers HOT 5
- PersistentSubscriptionCreateStatus wrongly internal ? HOT 2
- Detaching listener handlers from event store HOT 6
- DateTimeStringBugWorkaround fails in PHP 8 HOT 1
- PHP 8 support
- Best practice CI/CD HOT 3
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.