Rich domain model with symfony 2.5 and doctrine 2.5

download Rich domain model with symfony 2.5 and doctrine 2.5

If you can't read please download the document

Transcript of Rich domain model with symfony 2.5 and doctrine 2.5

Rich Domain Model with Symfony2 and Doctrine2

Leonardo Proietti@_leopro_

Rich Domain Model with Symfony2 and Doctrine2

Leonardo Proietti@_leopro_

Symfony Day ItalyMilan, 10 October 2014

twitter.com/_leopro_linkedin.com/in/leonardoproiettigithub.com/leopro

1. Domain Modeling

domain model = solution space

domain = problem space

Domain


A Domain [...] is what an organization does and the world it does in.

(Vaughn Vernon, Implementing Domain-Driven Design)

Domain Model

A model is a simplification. It is an interpretation of reality that abstracts the aspects relevant to solving problem at hand and ignores extraneous detail.

(Eric Evans, "Domain Driven Design")

A model is a simplification. It is an interpretation of reality that abstracts the aspects relevant to solving problem at hand and ignores extraneous detail.

A model

Domain Model

In DDD, domain model refers to a class.

(Julie Lerman, http://msdn.microsoft.com/en-us/magazine/dn385704.aspx)

Domain Model

An object model of the domain that incorporates both behavior and data.

(Martin Fowler, http://martinfowler.com/eaaCatalog/domainModel.html)

Domain Model

An object model of the domain that incorporates both behavior and data.

(Martin Fowler, http://martinfowler.com/eaaCatalog/domainModel.html)

Why Rich?

First, because its not anemicMartin Fowlerhttp://martinfowler.com/bliki/AnemicDomainModel.html