The message means exactly what it says, but it's referring
to the descriptor part, not the table part.
When you define a relationship from an Aa to a Bb, then normally you
don't have to say much at all. Glorp will do its best to figure out the
types, and based on the types, what foreign key relationships are
involved. But if there's more than one foreign key from the Aa table to
the Bb table, then it doesn't know which one to use. So you have to
define the relationship more explicitly, so in
descriptorForAa: aDescriptor
relationship1 := aDescriptor
oneToOneMapping
attributeName: #one;
join:
(Join from: b1_id to: ((self tableNamed: 'BbS')
fieldNamed: 'id')).
and similarly for relationship2. Actually, you might even get away with
just doing it for one, and it might be smart enough to look for the
potential foreign key that isn't already used. But I'm not sure about
that.
--
Alan Knight [|], Engineering Manager, Cincom Smalltalk