Forums / Developer / Linking objects to other objects / Comment37757
Paul Forsyth
Thursday 15 May 2003 1:30:59 am
If i read you correctly then ez doesn't support this in the manner you describe. You can't include a class as an attribute. They are totally seperate.
A related object is only related if you add it to an object. Nothing more is implied, in my understanding.
However, you can write template code to 'do' what you need.
In order to infer more about the relation you need to write template logic to identify what one means to the other.
In your example your review may be a related object, but this may be cumbersome since you would need to add related object reviews for each new car... It may be better to examine the results from a fetch over all reviews, then examine which reviews concerned your M500 car. And from this you can further examine the conclusion of the review and present the results.
Hope this helps,
Paul
Ps. I wish there was a way to include a class as an attribute!