Acces to parent attributes in relation data accesor

The approach is very simple, I only improve the existent class,  maybe a better aproach is to create another accesor that was able to access to both classes (maybe do it in a recursive way).