When I retrieve a Parent-object, the Child-object's ID is not always predictable. For example, sometimes it is set with 0 (zero), sometimes the actual value and sometimes -1.
Why?
How can I solve this problem?
For code and mapping-files plz see this older question from me.