I was reading Doctrine2 documentation and it mention at various places about unitOfWork
What is that. Can someone please explain me. that why i need that and what is its use for
I was reading Doctrine2 documentation and it mention at various places about unitOfWork What
Share
The unit of work in simple terms is a graph that begins constructing whenever related nodes (in the case of Symfony2, the entities) are changed.
When you execute the unit of work, it will track the changes of the affected entities (marked as dirty) of records and apply the changes to all of them in a single blow (transaction)
For more information: P of EAA Catalog: Unit of Work