Doctrine uses proxy objects to represent related objects in order to facilitate lazy loading. This is a really cool feature, but its causing an issue with something I am trying
The solution I found is to extend the Reflection Hydrator and use the new class as Hal extractor params, for complex entities.
Reflection Hydrator
You can find the code here:
Synergy of proxy object of doctrine and zend expressive hal
probably.