Update UnitOfWork.php

Fix for missing reflection proxy