I am trying to implement a many-to-many relationship between objects Pageand Imageusing a PageHasImagebridge object . In PageAdminI added the field like this:
->add(
'galleryImages',
'sonata_type_collection',
array(
'cascade_validation' => false,
'by_reference' => false,
'type_options' => array('delete' => false)
),
array(
'edit' => 'inline',
'inline' => 'table',
'sortable' => 'position',
'admin_code' => 'sonata.admin.page_has_image'
)
)
which gives me the opportunity to add a new field Imageand then upload a new image or select it from the list of downloaded ones. Part of the download works as expected, but choosing from an already loaded list of images does nothing. The button Selectin the list Imagesonly has a "#" in its href and doesn't seem to do anything useful. There are also check boxes next to the listed images, but there are no action buttons to use the selection.
, -? , - , .