I follow the guide to create:
1. a action of sonata admin http://sonata-project.org/bundles/admin/master/doc/cookbook/recipe_custom_action.html
2. a batch ax http://sonata-project.org/bundles/admin/master/doc/reference/batch_actions.html
In my action I want to change 1 field of the entity from true to false or via versa. For examble : the field enable. How can I update change to the database