Fix relational fields without to_fields
attribute.
#3635
Merged
to_fields
attribute.
#3635