PHPCR Fixes to make it work

Changes are basically correcting PHPCR mapping files, commenting method in BaseGallery which was causing troubles (we need to take a look to it) and correct wrong class names in repositories.
This function as commented in the issue, makes impossible to create or edit a gallery when using GalleryHasMedias mapping commit. If you skip this commit (GalleryHasMedias mapping), you can create a gallery but you "can't" edit, gallery will be edited but an error will be displayed. It's a bit weird what happens with this metod in this two situations and I was unable to know why it breaks everything.