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.
strange indeed. so on a different project, things work, except for this id error? could that come from not clearing the cache? can you try to rm -rf the caches and rebuilt and check again? could it be you have different versions of one of the sonata bundle in that fresh project than in the one with the failure?