Fixed serialization issue
Change-Id: Iba3c984ef21d9ca407c201513fc99fa08b473384 Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
parent
2bbd5365a6
commit
1c1c05b8ed
@ -183,13 +183,20 @@ abstract class AbstractSerializer implements IModelSerializer
|
||||
}
|
||||
catch (\Exception $ex){
|
||||
Log::warning($ex);
|
||||
$value = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!$method_found){
|
||||
//try dynamic one
|
||||
$value = call_user_func([$this->object, 'get'.$attribute ]);
|
||||
try {
|
||||
//try dynamic one
|
||||
$value = call_user_func([$this->object, 'get'.$attribute ]);
|
||||
}
|
||||
catch (\Exception $ex){
|
||||
Log::warning($ex);
|
||||
$value = null;
|
||||
}
|
||||
}
|
||||
|
||||
if(count($mapping) > 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user