feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
323 changed files with 968 additions and 12846 deletions
Showing only changes of commit aee0754b5a - Show all commits

View File

@ -19,7 +19,7 @@ class Propiedad extends Ideal\Repository
public function create(?array $data = null): Model\Venta\Propiedad
{
$map = (new Implement\Repository\MapperParser(['unidad_principal', 'estacionamientos', 'bodegas', 'estado']))
$map = (new Implement\Repository\MapperParser())
->register('estado', new Implement\Repository\Mapper\Boolean('estado'));
return $this->parseData(new Model\Venta\Propiedad(), $data, $map);
}

View File

@ -44,7 +44,7 @@ class Propiedad extends Service
public function getArrayById(int $propiedad_id): array
{
try {
return $this->propiedadRepository->fetchArrayById($propiedad_id);
return json_decode(json_encode($this->propiedadRepository->fetchById($propiedad_id)), true);
} catch (EmptyResult $exception) {
throw new Exception\ServiceAction\Read(__CLASS__, $exception);
}