Implemented repository mapper, and venta show
This commit is contained in:
@ -3,6 +3,7 @@ namespace Incoviba\Repository\Inmobiliaria;
|
||||
|
||||
use Incoviba\Common\Ideal;
|
||||
use Incoviba\Common\Define;
|
||||
use Incoviba\Common\Implement;
|
||||
use Incoviba\Model;
|
||||
|
||||
class TipoSociedad extends Ideal\Repository
|
||||
@ -15,10 +16,7 @@ class TipoSociedad extends Ideal\Repository
|
||||
|
||||
public function create(?array $data = null): Define\Model
|
||||
{
|
||||
$map = [
|
||||
'descripcion' => [],
|
||||
'abreviacion' => []
|
||||
];
|
||||
$map = (new Implement\Repository\MapperParser(['descripcion', 'abreviacion']));
|
||||
return $this->parseData(new Model\Inmobiliaria\TipoSociedad(), $data, $map);
|
||||
}
|
||||
public function save(Define\Model $model): Define\Model
|
||||
|
Reference in New Issue
Block a user