News Feed
Sections




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

Tobias Schlitt's Blog:
Identity Map pattern
April 22, 2009 @ 10:21:57

Tobias Schlitt has written up a new post looking at the identity pattern (an Enterprise application design pattern) and an implementation of Identity Map in the eZ Components framework.

The pattern affects the data access layer of an application and helps to avoid inconsistencies in data objects of your application. [...] In this article I want to give you a rough overview on the pattern itself and show you how you can test and use the functionality of PersistentObject.

The identity map pattern allows you to store/fetch objects across execution instances to reduce the overhead of recreating those objects every time. Tobias shows off the PersistentObject component as an example of it in action. It can create an identity map and store values (like session information in their example) and even includes methods to grab related objects as defined by calls to addRelatedObject.

0 comments voice your opinion now!
persistentobject ezcomponents design pattern identitymap


blog comments powered by Disqus

Similar Posts

DevShed.com: The Singleton and Factory Patterns in PHP - Working With Singletons

DevShed: Creating a MySQL Abstraction Layer with Bridge Classes in PHP 5

Derick Rethans' Blog: More goodies in the eZ Components

DevShed: Controlling Online Forms with Builder Objects in PHP 5 (Part 2)

Tobias Schlitt's Blog: Out now - eZ Components book - win a free copy!


Community Events

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


opinion yii2 project part2 community application series php7 framework list podcast example laravel testing interview language api symfony composer introduction

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