getMetadataCache(); if (!($this->references = $cache->get("$table:references"))) { $this->references = $table->getConnection() ->execParams(RELATION_SQL, array($table->getName())) ->map(array(0,1), array(2,3,4), \pq\Result::FETCH_OBJECT); $cache->set("$table:references", $this->references); } } function __isset($r) { return isset($this->references->$r); } function __get($r) { return $this->references->$r; } function __set($r, $v) { $this->references->$r = $v; } function __unset($r){ unset($this->references->$r); } }