Path / documentation / ez publish / technical manual / 3.8 / reference / modules / content / fetch functions / reverse_related_objects_count

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.



Fetches the number of reverse related objects.


fetch( 'content', 'reverse_related_objects_count',
       hash( 'object_id',            object_id,
           [ 'attribute_identifier', attribute_identifier, ]
           [ 'all_relations',        all_relations,        ]
           [ 'ignore_visibility',    ignore_visibility     ] ) )


object_id integer The ID number of the target object. Yes.
attribute_identifier mixed The ID number or class/attribute identifier of the target attribute. No.
all_relations boolean Controls whether to fetch all types of relastions or not, default is FALSE. No.
ignore_visibility boolean Makes it possible to fetch hidden nodes. No.


An integer (number of reverse related objects).


This function is the same as the "reverse_related_objects" function. However, instead of returning an array of objects, it returns the number of objects that were found. Please refer to the documentation of the "reverse_related_objects" function for information about the parameters.

Balazs Halasy (04/04/2005 2:47 pm)

Svitlana Shatokhina (08/01/2007 12:37 pm)

Balazs Halasy, Svitlana Shatokhina


There are no comments.