creating adapter for doctrine repository