Commit 8c14ba26 authored by Sebastian Castro's avatar Sebastian Castro

Remove inline delete for category and option

parent 5d588920
......@@ -67,7 +67,7 @@ class CategoryAdmin extends AbstractAdmin
->add('displayInForm', null, array('required' => false, 'label' => "Dans le formulaire"))
->end()
->with('Options', array('class' => 'col-xs-12 sub-options-container'))
->add('options', 'sonata_type_collection', array('by_reference' => false, 'type_options' => array('delete' => true)), array(
->add('options', 'sonata_type_collection', array('by_reference' => false, 'type_options' => array('delete' => false)), array(
'edit' => 'inline',
'inline' => 'table',
'admin_code' => 'admin.option.lite',
......
......@@ -64,7 +64,7 @@ protected $baseRoutePattern = 'admin_biopen_geodirectory_option';
->add('displayInForm', null, array('required' => false, 'label' => "Dans le formulaire"))
->end()
->with('Sous catégories', array('class' => 'col-xs-12 sub-categories-container'))
->add('subcategories', 'sonata_type_collection', array('by_reference' => false, 'type_options' => array('delete' => true)),
->add('subcategories', 'sonata_type_collection', array('by_reference' => false, 'type_options' => array('delete' => false)),
array(
'edit' => 'inline',
'inline' => 'table',
......
......@@ -34,7 +34,7 @@ class DatabaseIntegrityWatcher
$optionValue = array_values($optionValueToBeRemoved)[0];
$element->removeOptionValue($optionValue);
if ((++$i % 20) == 0) {
if ((++$i % 50) == 0) {
$dm->flush();
$dm->clear();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment