Hi!
It didn't work if your association "opposite" is something else than a method. Try on a method of your model where the result is not empty: self queryOutgoingAccesses atMethodScope
I have tried only on outgoing invocations. I wrote a test about it. But yes, what I have done is probably not optimal.
You will see that the result is not methods but attributes. If you query references, you will get classes instead of methods...
I think you should use MooseQuery that is designed to resolve these issues:
MCHttpRepository location: 'http://smalltalkhub.com/mc/AnneEtien/MooseQueryDraft/main' user: '' password: ''
Well… I think MooseQuery should be added to Moose and not loaded as a separate package. What is the status of it? I had a look at Famix-Core.MooseQueryEXPERIMENTAL and MooseQuery. Tests are green and it looks okay. So, what next?
Alexandre