21 Votes Vote

Practical PHP Patterns: Query Object

Posted by jjlo 60 days ago php
http://css.dzone.com — An ORM provides an abstraction of storage as an in-memory object graph, but it is difficult to navigate that graph via object pointers without loading a large part of it. Typical problems of this approach are the performance issues related to loading of the various objects, and the transfer of business logic execution from the database side to the client code side, with the resulting duplication. Query objects are the most versatile way to ask for the objects that satisfy certain conditions, and they are an Interpreter implementation over a query language adapt for an object model.
Discuss Bury
Tags: practical php patterns query object All


Who Voted for this Story