dependency on doctrine = optional