I am using Sonata admin bundle and I have embedded admins. The child entities are listed as a table structure. I have removed the delete route for the child admin. But still delete checkbox is coming when the child is embedded.
i.e I have a Product table and a price table. I am embedding the price table in the product table. In the price table I am able to remove the delete button. But when embedded, the delete checkbox is appearing in the product table and if checked and updated, the row gets deleted. Could anyone of you please help me remove the delete checkbox..?? Thanks in advance
The type option can do the job for embedded admins like below.
$formMapper
->add('field_name', 'sonata_type_collection',
array('type_options' => array('delete' => false)),
array(
'edit' => 'inline',
'inline' => 'table'
))
;