diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-24 16:37:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-24 16:37:09 +0200 |
commit | e7892161b62d0f7f2ccf984d163a91025a3ddf78 (patch) | |
tree | 53b4ed2934df81071e5cf6b4fb44568bcf487522 /odb/type-processor.cxx | |
parent | 19ba163feb74def218861b4b3981e713b358d1c8 (diff) |
Implement support for many-to-{one,many} inverse relationships
Diffstat (limited to 'odb/type-processor.cxx')
-rw-r--r-- | odb/type-processor.cxx | 7 |
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; } |