Updated code with doctrine settings