Browse Source

fixed dbo generator

tags/0.1.2^0
Robin Thoni 9 years ago
parent
commit
08d6d80328
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/Generator/dbo.php.twig

+ 1
- 1
src/Generator/dbo.php.twig View File

24
     {
24
     {
25
         $dbo = new {{ dbo_name.camel_upper }}();
25
         $dbo = new {{ dbo_name.camel_upper }}();
26
 {% for column in columns %}
26
 {% for column in columns %}
27
-        if (isset($json["{{ column.name.camel_upper }}"]) {
27
+        if (isset($json["{{ column.name.camel_upper }}"])) {
28
             $dbo->set{{ column.name.camel_upper }}($json["{{ column.name.camel_upper }}"]);
28
             $dbo->set{{ column.name.camel_upper }}($json["{{ column.name.camel_upper }}"]);
29
         }
29
         }
30
 {% endfor %}
30
 {% endfor %}

Loading…
Cancel
Save