I have installed the bundle and everything is working properly, but I have a question. Where is the database mapping for the entities?
Looking here, in the Entity folder of the bundle, these classes extend each their respective class for the Model folder of the bundle. Looking at the Gallery Model, there are no annotations, so the mapping must be done in Resources/config/doctrine
which it is.
However, the Gallery mapping or the GalleryHasMedia have all of the fields definition except the relation between the entities.
Is the relation created automatically? And how? Or is it somewhere else and I've missed it?
The mapping is registered within the Extension class of the Bundle, see https://github.com/sonata-project/SonataMediaBundle/blob/master/DependencyInjection/SonataMediaExtension.php#L194