News Feed
Sections




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

DevShed:
Building an ORM in PHP Domain Modeling
November 22, 2011 @ 16:46:10

Continuing on from the first part of their series, DevShed has posted part two of their "Building an ORM in PHP" series. This latest tutorial focuses on domain modeling (and collection handling).

In that first part, I implemented the ORM's data access and mapping layers. And as you'll surely recall, the entire implementation process was pretty straightforward and easy to follow. Of course, in its current state the ORM is still far from a fully-functional structure. We need to add some additional components to it, such as a domain model and the classes responsible for handling collections of entities (remember that the ORM relies heavily on the data mapper pattern to do its business properly).

He stays with his "simple blog" example and shows domain models (based on an abstract entity) for Entries, Comments and Authors. His containers extend the Countable, IteratorAggregate and ArrayAccess interfaces to give them some extra abilities.

0 comments voice your opinion now!
tutorial domain model orm database mapping relational


blog comments powered by Disqus

Similar Posts

Sebastian Bergmann's Blog: PHPUnit Status Update

Stoyan Stefanov's Blog: Automating HTTPWatch with PHP

Zend Developer Zone: 2 Beginners Guides I Wish I had when I Started with PHP

Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm

Insidesigns Blog: Create a scalable private messaging application using PHP5


Community Events

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


voicesoftheelephpant laravel5 framework podcast php7 version laravel opinion introduction release example interview video language api security library community unittest series

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