Browse Source

Allow null values to be marshalled when using fieldList

Walther Lalk 11 years ago
parent
commit
585522d493
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/ORM/Marshaller.php

+ 2 - 2
src/ORM/Marshaller.php

@@ -147,7 +147,7 @@ class Marshaller
         }
 
         foreach ((array)$options['fieldList'] as $field) {
-            if (isset($properties[$field])) {
+            if (array_key_exists($field, $properties)) {
                 $entity->set($field, $properties[$field]);
             }
         }
@@ -374,7 +374,7 @@ class Marshaller
         }
 
         foreach ((array)$options['fieldList'] as $field) {
-            if (isset($properties[$field])) {
+            if (array_key_exists($field, $properties)) {
                 $entity->set($field, $properties[$field]);
             }
         }