FIX: evitar correr funcion con valor vacio en Mapper
This commit is contained in:
@ -68,7 +68,7 @@ class Mapper implements Define\Repository\Mapper
|
|||||||
}
|
}
|
||||||
$value = $data[$column];
|
$value = $data[$column];
|
||||||
if ($this->hasFunction()) {
|
if ($this->hasFunction()) {
|
||||||
if ($value !== null) {
|
if ($value !== null and $value !== '') {
|
||||||
try {
|
try {
|
||||||
$value = ($this->function)($data);
|
$value = ($this->function)($data);
|
||||||
} catch (EmptyResult $exception) {
|
} catch (EmptyResult $exception) {
|
||||||
|
Reference in New Issue
Block a user