When grabbing related records from a CActiveRecord is there a way to get a reference to the parent object from the children?
So:
parent -<—<-----<-
-> child____ ^
____-> parent -->-^
It might seem a little odd but when a child has multiple parents I need to know which one called it for some contextual information.
I understand I could do this by not using a relation but having a function and looping over them myself, but then I loose all the power of the relations and the niceties that they bring.
This can be very usefull! It is certainly much more efficient then [size=2]extra unneccessary querying through a forward only lazy loading of parent > child > parent [/size]