Ronald Wildenberg wrote:
> I have a problem retrieving relations from an MMBase cloud. I have the
> following (simplified) cloud model:
>
> A - related - A
> A - related - B
>
> I wish to retrieve all 'related' relations between A and A. This seems to
> be impossible, since I always retrieve the relations between both A and A
> and A and B. My final attempt was the following (which also does not
> succeed):
Do you want to list all relation nodes between any objects of type A? I assume that B
does not extend A?
I suppose you have to list all object of type A and then count all related A nodes
iteratively.
> final NodeManager typeDefManager = cloud.getNodeManager("typedef");
> final NodeList typeDefList = typeDefManager.getList("name='A'", null,
> null);
??!!?? Why would this be any different then cloud.getNodeManager("A")?
>
> So the question is: how do I retrieve all relations between 2 node types
> without retrieving all relations that are defined by the same builder.
Perhaps something like <mm:relatednodes path="A,related,A" element="related">, or the
Bridge
equivalent of that.
Michiel
--
Michiel Meeuwissen mihxil'
Mediacentrum 140 H'sum [] ()
+31 (0)35 6772979 nl_NL eo_XX en_US