Only set object as context if it is from the right type
Only set object as context if it is from the right type

malukenho/DoctrineModule,UFOMelkor/DoctrineModule,vasildakov/DoctrineModule,gencer/DoctrineModule,netiul/DoctrineModule,doctrine/DoctrineModule,UFOMelkor/DoctrineModule,inbaz/DoctrineModule,marek1989/DoctrineModule,malukenho/DoctrineModule,alirezarahmani/DoctrineModule,mpalourdio/DoctrineModule