Forums / General / Differences between related object types (Attribue Vs Normal)

Differences between related object types (Attribue Vs Normal)

Author Message

Bruce Morrison

Thursday 27 May 2004 1:36:35 am

There seems to be a difference between a related object attribute and a the normal related object that is part of every object.

For the normal related objects the variable $node.object.current.reverse_related_object_list is set which makes it possible to create a link back to the relating object(s).

When you use a related object attribute this variable does not get set and there does not appear to be any way to find the relating objects without doing another fetch.

I'm using 3.4 beta 2 to test this and am wondering if this is a just an issue with the beta version. If not is there any reason why the related object attribute behaves differently than the normal related objects?

Cheers
Bruce http://www.designit.com.au

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Bruce Morrison

Monday 31 May 2004 9:13:23 pm

I've investigated this with version 3.3-5 and the same behaviour occurs (i.e. $node.object.current.reverse_related_object_list doesn't get set for related object attributes). This behavious is consistant for both related object and related object list attributes.

It would be very helpful it the related object attributes work in the same manor as the generic related object content type.

I'll log this as a bug.

Cheers
Bruce http://www.designit.com.au

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish