Skip to content

Commit

Permalink
fixed store:observer test
Browse files Browse the repository at this point in the history
  • Loading branch information
zussel committed Feb 17, 2017
1 parent 9ba53b0 commit 99fc8a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/oos/object/node_analyzer.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ void basic_node_analyzer::process_has_many(const prototype_iterator &pi, const c
store_.typeid_prototype_map_[typeid(typename has_many<V, C>::item_type).name()].insert(std::make_pair(pi->type_, pi.get()));
} else {
// found corresponding belongs_to or has_many
auto j = pi->relation_info_map_.find(node_.type_index_);
auto j = pi->relation_info_map_.find(pi->type_index());
// auto j = pi->relation_info_map_.find(node_.type_index_);
if (j == pi->relation_info_map_.end()) {
// check for has many item
throw_object_exception("prototype already inserted: " << pi->type());
Expand Down

0 comments on commit 99fc8a4

Please sign in to comment.