if $fieldName is not set at all, this will also trigger, right?

what about child / children and parent associations? but i guess there we simply can not know the class in advance.