diff --git a/src/Pluf/Model.php b/src/Pluf/Model.php index 71c24c4..92e5976 100644 --- a/src/Pluf/Model.php +++ b/src/Pluf/Model.php @@ -579,7 +579,7 @@ class Pluf_Model } // FIXME: The associated properties need to be converted too. foreach ($query['props'] as $prop => $key) { - if (isset($row[$prop])) $this->_data[$key] = $row[$prop]; + $this->_data[$key] = (isset($row[$prop])) ? $row[$prop] : null; } $this->restore(); $res[] = clone($this);