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:
describeRoles
       ^ (MAOneToManyRelationDescription auto: 'roles' label: 'Roles'
priority: 40)
               options: MAUserRole allInstances;
               yourself.

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!
Pablo.-

_______________________________________________
Smallwiki mailing list
[hidden email]
http://impara.de/mailman/listinfo/smallwiki