PHP UK Conference 2014 Mathias Verraes Unbreakable Domain Models
Data Mappers (like Doctrine2) help us a lot to persist data. Yet many projects are still struggling with tough questions: Where to put business logic How to protect our code from abuse Where to put queries, and how test them Let s look beyond the old Gang of Four design patterns, and take some clues from tactical Domain Driven Design. At the heart of our models, we can use Value Objects and Entities, with tightly defined consistency boundaries. Repositories abstract away the persistence. Encapsul
|
|