Monday 23 October 2006 12:14:28 pm
Could you give me an idea on how to fetch in a template a list of objects having children with a particular attribute matching given criteria? I have got
Parent object 1
---- Child Object 1 (attribute1 = 'a') ---- Child Object 2 (attribute1 = 'c')
Parent object 2
---- Child Object 3 (attribute1 = 'b') ---- Child Object 4 (attribute1 = 'c')
Parent object 3
---- Child Object 4 (attribute1 = 'b') ---- Child Object 5 (attribute1 = 'a') I need a list of parent objects that have attribute1 = 'a' in child objects. How can i fetch this objects in my template? Thank you in advance.
|