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.
Yep, this is a different project using same composer.json file to make sure everything was exact, same configuration but I have that `id` error on DEV... When changing to PROD (i needed to fix some PagerInterface errors for sonata, but easy) everything works, even `reorderGalleryHasMedia` problems.

This error is only for PHPCR, because ORM works perfectly.. Maybe phpcr core bundles have changed? I will take a look and retry to reproduce and give a feedback.

Caches are removed, rebuilt and the id error exists...