correct index for doctrine