News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Tibo Beijen's Blog:
DDD using Doctrine 2 A case study
June 28, 2011 @ 10:54:15

In a new post to his blog Tibo Beijen presents a case study about doing Domain Driven Design in an application using Doctrine2 to work with objects and your database.

Nowadays developing web applications usually requires a flexible process due to changing business logic, shifting priorities or new insights. Besides choosing the right methodology this also requires designing the application in such a way that this flexibility can be achieved. [...] In this article I will show how to implement a specific case using Doctrine 2. Full code accompanying this article can be found on GitHub.

He starts by describing the entities (User/TimeSheet/TimeSheetStatusChange) and how they're defined in Doctrine objects. He modifies them to build in some business-level restrictions like "status changes are only allowed in a certain order". He shows that the domain models presented are about more than just working with the database tables. They enforce rules that effect the flow of the application as well.

0 comments voice your opinion now!
doctrine2 domaindriven design ddd casestudy example


blog comments powered by Disqus

Similar Posts

Hiveminds Magazine: PHP: What to Do When Your Web Host Turns Off Fopen

Zend Developer Zone: Improved Test Assets for Zend_Tool Generated Projects in ZF 1.11.4

Community News: CakePHP 1.2 Release (and a New Site Design)

Raphael Stolt's Blog: Creating and using Phing ad hoc tasks

Web Mozarts: Defining PHP Annotations in XML


Community Events

Don't see your event here?
Let us know!


opinion wordpress laravel framework development release middleware unittest laravel5 series api library introduction podcast community extension interview language voicesoftheelephpant conference

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework