diff --git a/include/class.orm.php b/include/class.orm.php index 63ce1e08540c4e2a75bb5b7d006479cbaf1dbdc5..2dab465970a69a8bc8aa573cbc96dac386959839 100644 --- a/include/class.orm.php +++ b/include/class.orm.php @@ -43,7 +43,8 @@ class VerySimpleModel { // TODO: Support instrumented lists and such $j = static::$meta['joins'][$field]; $class = $j['fkey'][0]; - $v = $this->ht[$field] = $class::lookup($this->ht[$j['local']]); + $v = $this->ht[$field] = $class::lookup( + array($j['fkey'][1] => $this->ht[$j['local']])); return $v; } }