summaryrefslogtreecommitdiff
path: root/odb/type-processor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/type-processor.cxx')
-rw-r--r--odb/type-processor.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/type-processor.cxx b/odb/type-processor.cxx
index fcdb3eb..2fccbf3 100644
--- a/odb/type-processor.cxx
+++ b/odb/type-processor.cxx
@@ -408,6 +408,13 @@ namespace
if (kt != 0)
process_container_value (*kt, m, "key", false);
+ // If this is an inverse side of a bidirectional object relationship
+ // and it is an ordred container, mark it as unordred since there is
+ // no concept of order in this construct.
+ //
+ if (ck == ck_ordered && m.count ("value-inverse"))
+ m.set ("unordered", string ()); // Keep compatible with pragma.
+
return true;
}