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