fix "Ambiguous class resolution "Sonata\MediaBundle\PHPCR\GalleryHasMediaRepository""