Well, I provided a simplified example. This is the situation I'm in:
Object 1 contains an array containing references to Object 2.
I need to call a function of Object 1 from the instance of Object 2 which is contained inside of an array inside of Object 1. I cannot call the function of Object 1 because I do not know the variable name holding the reference. If I set it to retrieve from a single name, that means it would try to access that single name for every instance of the object. I cannot use a static function because I need the values to be unique per instance. I need some way of going backwards by finding out the variable name that holds the reference to the object and then finding out the variable name that holds the reference to that array. This probably sounds confusing. I think I will just pass a reference from Object 1 when creating Object 2 in the array by setting a property in the constructor.