Hydrator

A PR to tidy this PR
https://github.com/zfcampus/zf-apigility-doctrine/pull/100