@@ -24,7 +24,9 @@ class {{ dbo_name.camel_upper }} extends LuDbo {
{
$dbo = new {{ dbo_name.camel_upper }}();
{% for column in columns %}
- $dbo->set{{ column.name.camel_upper }}($json["{{ column.name.camel_upper }}"]);
+ if (isset($json["{{ column.name.camel_upper }}"]) {
+ $dbo->set{{ column.name.camel_upper }}($json["{{ column.name.camel_upper }}"]);
+ }
{% endfor %}
return $dbo;
}