Implemented repository mapper, and venta show

This commit is contained in:
Juan Pablo Vial
2023-08-08 23:53:49 -04:00
parent ef30ae67d2
commit 59825259b6
111 changed files with 2766 additions and 612 deletions

View File

@ -3,6 +3,7 @@ namespace Incoviba\Repository;
use Incoviba\Common\Define;
use Incoviba\Common\Ideal;
use Incoviba\Common\Implement;
use Incoviba\Model;
class Region extends Ideal\Repository
@ -15,11 +16,7 @@ class Region extends Ideal\Repository
public function create(?array $data = null): Define\Model
{
$map = [
'descripcion' => [],
'numeral' => [],
'numeracion' => []
];
$map = new Implement\Repository\MapperParser(['descripcion', 'numeral', 'numeracion']);
return $this->parseData(new Model\Region(), $data, $map);
}
public function save(Define\Model $model): Define\Model