PHP ORM's, multiple tables and efficiency

Posted by sunwukung on Stack Overflow See other posts from Stack Overflow or by sunwukung
Published on 2010-06-02T09:05:29Z Indexed on 2010/06/02 9:44 UTC
Read the original article Hit count: 200

Filed under:
|
|

Let's say I have a data mapper function that aggregates multiple tables and generates an object instance from that data. The mapper has a typical save() method which delegates to update/insert.

When the mapper executes save - ideally it isolates object fields that have been modified, thus preventing the code from blanket bombing the database.

How would you go about this?

© Stack Overflow or respective owner

Related posts about php

Related posts about orm