Doctrine integration for BedREST