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

Tibo Beijen's Blog:
Controlled initialization of domain objects
Jul 09, 2009 @ 10:06:02

Tibo Beijen takes a look at domain objects in this new post to his blog and how they have them working in a project he's been developing.

In a recent project I've been working on, we have used the 'Domain Model' to describe and design our application. Doing so we decouple persistency logic from the objects that are being passed around and modified throughout our application: The Domain objects.

He talks about challenges associated with the development (issues separating out the business logic) and how they solved it in two ways - reflection and a pattern where the domain object uses itself. Code is also included to help illustrate the problem and these two methods of resolving it.

tagged: businesslogic control initialize object domain

Link: