made hydrators overridable
removed hard dependency to doctrine