First attempt to re-implement `Doctrine\ORM\UnitOfWork` with simpler logic