See Martin Folwer Unit of Work page
Unit of Work is a pattern used to delay the object persistance (saving). The main goal is to leave PHP output it's content and delay the saving of the model object to after the treatment.
To do this, the class Zend_Db_Table_Row could use a container (array) to stock its instances, and with register_shutdown_function(), delay their saving. I met problems with that, anyway, I already have a patch for working on that.
Perhaps another object should be used, or pehaps UOW is not a good idea for ZF ...
ZF Home Page
Code Browser
Wiki Dashboard