FIX: Agregar o editar producto
This commit is contained in:
@ -136,7 +136,7 @@ class Producto extends Model {
|
||||
return $this->imagen;
|
||||
}
|
||||
public function map($data): Model {
|
||||
$this->id = $data->id;
|
||||
$this->id = $data->id ?? null;
|
||||
$this->nombre = $data->nombre;
|
||||
$this->segmento = $data->segmento;
|
||||
$this->direccion = new Direccion();
|
||||
|
Reference in New Issue
Block a user