Does anyone out there know how I can get rid of the green pluses that allow adding a new item to a collection in the sonata admin forms? The native collectiontype has allow_add & allow_delete, but sonata_type_collection doesn't seem to notice those options.
I have tried the following:
->add('store_orders', 'sonata_type_collection', array(), array(
'type_options' => array('allow_add' => false),
))
which has no effect
->add('store_orders', 'sonata_type_collection', array(
'allow_add' => false
))
which gives an error 'The option "allow_add" does not exist'
->add('store_orders', 'sonata_type_collection', array(
'type_options' => array('allow_add' => false)
))
which also gives an error 'The option "allow_add" does not exist'
I'd also like to remove the delete checkboxes next to each item in the collection. I presume the answer to that lies in a similar area.
Any assistance would be greatly appreciated.