Categorias
This commit is contained in:
@@ -98,6 +98,7 @@ class RestaurantesController extends Controller {
|
||||
if($restaurant->canalesVenta()->count() > 0) throw new CantDeleteHasChildException("restaurant", "canal_venta");
|
||||
if($restaurant->sectores()->count() > 0) throw new CantDeleteHasChildException("restaurant", "sector");
|
||||
if($restaurant->zonasProduccion()->count() > 0) throw new CantDeleteHasChildException("restaurant", "zona_produccion");
|
||||
if($restaurant->categorias()->count() > 0) throw new CantDeleteHasChildException("restaurant", "categoria");
|
||||
|
||||
|
||||
$restaurant->delete();
|
||||
|
||||
Reference in New Issue
Block a user