FIX: evitar correr funcion con valor vacio en Mapper

This commit is contained in:
Juan Pablo Vial
2024-09-24 13:26:41 -03:00
parent e2573f35d1
commit afbac7259a

View File

@ -68,7 +68,7 @@ class Mapper implements Define\Repository\Mapper
}
$value = $data[$column];
if ($this->hasFunction()) {
if ($value !== null) {
if ($value !== null and $value !== '') {
try {
$value = ($this->function)($data);
} catch (EmptyResult $exception) {