2. Modern Application Architecture
1. HTTP Land
2. Mapped by Lean Controller
3. To Application Land with Fat Services
4. Mapped by Lean Model
5. To Backend Land (Persistence, Integrations etc.)
3. Lean Models with Doctrine
● Doctrine 2.x is built on DataMapper pattern
unlike 1.x which was ActiveRecord
● DataMapper pattern allows for domain
objects to be isolated from persistence logic
● Enables easier unit testing
● Allows mapping Entities and properties with
more than one source
4. Use-case?
A project requires your Car and Engine entities
to pull Milage and Photo fields from an API that’
s prone to frequent change..