Update UnitOfWork.php
Update UnitOfWork.php

Only the fix from pull request #95
kevinyien/couchdb-odm,d70rr3s/couchdb-odm,doctrine/couchdb-odm,d70rr3s/couchdb-odm,doctrine/couchdb-odm,kevinyien/couchdb-odm