origin symfony2 and sonata with userbundle and media bundle