Update DoctrineObject.php

Updated DoctrineObject to support passing the object/data for extractValue/hydrateValue respectively. This supports context specific extraction/hydration.