this will go to the doctrine bundle. i found no better way to get to the kernel during the compiler pass as 'kernel' is still a syntetic service when compiler passes are executed.

you need to create the bundle in the kernel with `FOSUserBundle($this)`. is that sane?