cacheCall(array('BasicPriceUnitMeasurePeer' , 'retrieveArrayByPK'), array($id)); } return isset(self::$cached[$id]) ? self::$cached[$id] : null; } public static function retrieveArrayByPK($id) { $c = new Criteria(); $c->addSelectColumn(self::ID); $c->addSelectColumn(self::MULTIPLIER); $c->addSelectColumn(self::UNIT_SYMBOL); $rs = self::doSelectRs($c); return self::hydrate($rs); } public static function clearCache() { $fc = new stFunctionCache('BasicPrice'); $fc->removeAll(); } protected static function hydrate(ResultSet $rs) { $results = array(); while($rs->next()) { $row = $rs->getRow(); $results[$row[0]] = array( 'multiplier' => $row[1], 'unit' => $row[2] ); } return $results; } }