FIX: no cargaba el valor

This commit is contained in:
2020-06-04 00:16:45 -04:00
parent 2833e58bef
commit cc566d4a39

View File

@ -114,6 +114,7 @@ class Producto extends Model {
$this->id = $data->id ?? null; $this->id = $data->id ?? null;
$this->nombre = $data->nombre; $this->nombre = $data->nombre;
$this->segmento = $data->segmento; $this->segmento = $data->segmento;
$this->valor = $data->valor;
$this->direccion = new Direccion(); $this->direccion = new Direccion();
$this->direccion->map($data); $this->direccion->map($data);
$this->valor($data->valor); $this->valor($data->valor);