Roberto Santini hace 1 semana
padre
commit
6b7ef7f553
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      app/Http/Controllers/ProdottoController.php

+ 1
- 1
app/Http/Controllers/ProdottoController.php Ver fichero

@@ -184,7 +184,7 @@ class ProdottoController extends Controller implements HasMiddleware
184 184
 
185 185
     private function syncTodos(Prodotto $prodotto, array $todos): void
186 186
     {
187
-        $prodotto->prodottoTodos()->delete();
187
+        $prodotto->todos()->delete();
188 188
 
189 189
         $ordine = 0;
190 190
         foreach ($todos as $row) {

Loading…
Cancelar
Guardar