|
@@ -131,8 +131,6 @@ abstract class LuDbo implements \JsonSerializable {
|
131
|
131
|
$value = null;
|
132
|
132
|
if (isset($json[$name])) {
|
133
|
133
|
$value = static::deserializeValue($json[$name], $type);
|
134
|
|
- $property->setAccessible(true);
|
135
|
|
- $property->setValue($dbo, $value);
|
136
|
134
|
}
|
137
|
135
|
|
138
|
136
|
if ($doc->isNotNull() && is_null($value)) {
|
|
@@ -144,6 +142,8 @@ abstract class LuDbo implements \JsonSerializable {
|
144
|
142
|
call_user_func_array([$value, $constraint->getMethod()], $constraint->getArguments());
|
145
|
143
|
}
|
146
|
144
|
}
|
|
145
|
+ $property->setAccessible(true);
|
|
146
|
+ $property->setValue($dbo, $value);
|
147
|
147
|
}
|
148
|
148
|
return $dbo;
|
149
|
149
|
}
|