Check the most important in __isset(), the actual record fields.
authorJan Schneider <jan@horde.org>
Sun, 3 May 2009 17:17:54 +0000 (19:17 +0200)
committerJan Schneider <jan@horde.org>
Sun, 3 May 2009 22:41:03 +0000 (00:41 +0200)
framework/Rdo/lib/Horde/Rdo/Base.php

index ad5f38c..b37190f 100644 (file)
@@ -170,7 +170,8 @@ abstract class Horde_Rdo_Base implements IteratorAggregate {
     public function __isset($field)
     {
         $m = $this->getMapper();
-        return isset($m->fields[$field])
+        return isset($this->_fields[$field])
+            || isset($m->fields[$field])
             || isset($m->lazyFields[$field])
             || isset($m->relationships[$field])
             || isset($m->lazyRelationships[$field]);