Comments (2)
You're totally right here. This is a trade off. My models are also my DB schema. And it doesn't have to be like that. When I did the project thought that decouple until the infinite wasn't worth it the time I've to spend. We're paid to deliver anyway. After some years I've to say that you can couple to a very trusted library if the api is stable and the building and maintenance time of the opposite is too much. In the other hand, your domain model doesn't care about your DB scheme or the DB itself so projections are a game changer
To accomplish this generate projections by collecting domain events, like I do here https://github.com/jorge07/symfony-4-es-cqrs-boilerplate/blob/master/src/Infrastructure/User/Query/Projections/UserView.php
Event Sourcing is optional BTW.
I hope you find this helpful
from ddd-playground.
I did, that what you talked about - I created the interface for collection in the domain, and next to I created, for example, myCollection in infra, 'extends ArrayCollection implements MyInterfaceFromDomain'.
👍
from ddd-playground.
Related Issues (11)
- Implement somehow DomainEvents
- Refactor gitlab-ci or replace for jenkinsfile
- Nelmio's api/doc is inaccessible without authentication HOT 4
- {version} not used/validated
- [Identifier] serializer group not being used for User HOT 1
- Empty response upon user registration HOT 13
- User's Auth Roles not persisted HOT 3
- No such file or directory HOT 5
- no database? HOT 6
- Upgrade to Sf4 and remove Infrastructure Bundles 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 ddd-playground.