cache() is not implemented yet.
authorJan Schneider <jan@horde.org>
Sun, 3 May 2009 15:41:40 +0000 (17:41 +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 ccc8e7d..ad5f38c 100644 (file)
@@ -123,8 +123,7 @@ abstract class Horde_Rdo_Base implements IteratorAggregate {
             break;
 
         case Horde_Rdo::ONE_TO_MANY:
-            $this->_fields[$field] = $this->cache($field,
-                $m->find(array($rel['foreignKey'] => $this->{$rel['foreignKey']})));
+            $this->_fields[$field] = $m->find(array($rel['foreignKey'] => $this->{$rel['foreignKey']}));
             break;
 
         case Horde_Rdo::MANY_TO_MANY:
@@ -132,9 +131,9 @@ abstract class Horde_Rdo_Base implements IteratorAggregate {
             $query = new Horde_Rdo_Query();
             $on = isset($rel['on']) ? $rel['on'] : $m->model->key;
             $query->addRelationship($field, array('mapper' => $mapper,
-                                                     'table' => $rel['through'],
-                                                     'type' => Horde_Rdo::MANY_TO_MANY,
-                                                     'query' => array($on => new Horde_Rdo_Query_Literal($on), $key => $this->$key)));
+                                                  'table' => $rel['through'],
+                                                  'type' => Horde_Rdo::MANY_TO_MANY,
+                                                  'query' => array($on => new Horde_Rdo_Query_Literal($on), $key => $this->$key)));
             $this->_fields[$field] = $m->find($query);
             break;
         }