the data is stored correctly in the Numbers collection in Mongo. Also the relationship is fine.
Everything fine till here.
VOMongoRepository current reset.
mongoContainer
<mongoContainer>
^ VOMongoContainer new
enableMissingContent;
collectionName: 'Numbers';
"kind: self;"
yourself
Then I get the error "Bad object requested (Three does not inherits from One)"
If I define
mongoContainer
<mongoContainer>
^ VOMongoContainer new
enableMissingContent;
collectionName: 'Numbers';
kind: self;
yourself
Then I get an Inspector with 3 instances of "One" (I refer to the workspace of the image from tommasso)
It should be only one instance of One
Clicking on the one instances, I get an emergency screen with
***System error handling failed****
VOMongoError: Lazy reference not found ...
Tommasso, do you get the same results?
I am curious about the solution.
***************This is the workspace of tommasso
repository dropDatabase.
repository := VOMongoRepository
host: 'localhost'
database: 'VoyageMongo-Link-Test-5'.
repository enableSingleton.
one := One new.
two := Two new.
three := Three new.
one link: two.
one link: three.
one save.
two save.
three save.
VOMongoRepository current reset.
One selectAll