Updating document variable's changes (CategoriaController.php class)