Version 1 by julien PAULI
on Jul 03, 2008 08:33.

compared with
Current by julien PAULI
on Jul 03, 2008 08:33.

(show comment)
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (5)

View Page History
See [Martin Folwer Unit of Work page|http://martinfowler.com/eaaCatalog/unitOfWork.html]
<p>See <a href="http://martinfowler.com/eaaCatalog/unitOfWork.html">Martin Folwer Unit of Work page</a></p>

<p>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.</p>

<p>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.&nbsp; I met problems with that, anyway, I already have a patch for working on that.</p>

<p>Perhaps another object should be used, or pehaps UOW is not a good idea for ZF ...&nbsp;</p>