Improvement for patch method in DoctrineResource.php

I don't understand why the full entity data is put in an array. With a patch you want to touch as minimal as possible. So I think the change of this pull request is sufficient/better?