One to many relationship

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

One to many relationship

Pablo Iaria
Hi all,
I'm re-sending this mail because Lukas told me he had not received it.

I'm trying to start using Magritte building a small application.

I have a class SampleApplication who has a collection of MAUserRole
objects (the accessor is named #roles) and I'm trying to figure out
how to describe such attribute (I'd want to see a combo with the
possible options).

I've tried several combinations with no success.

One of my attempts was:
       ^ (MAOneToManyRelationDescription auto: 'roles' label: 'Roles'
priority: 40)
               options: MAUserRole allInstances;

And I got:
MessageNotUnderstood: MAUserRole>>do:separatedBy:
   * MAUserRole(Object)>>doesNotUnderstand: #do:separatedBy:

What am I doing wrong?
Is there any documentation about how to describe different relationships?

Thanks in advance!

Smallwiki mailing list
[hidden email]