private function set_object($field_name, YZE_Model $value) { $info = $this->objects[$field_name]; if ($info['type'] == "one-one") { $this->cache[$field_name] = $value; } else { $this->cache[$field_name][$value->get_key()] = $value; } return $this; }