I have a model PartOrder which belongs to a Customer model.
Both tables have the field customerNbr, but customerNbr is not the primary key in the Customer table, as it contains characters and I haven’t figured out how the url mamager works with non-integer primary keys.
So therefore I need to build a BELONGS_TO ‘customer’ relation in the PartOrder model.
How can I specify the ‘customer’ relation in the ‘PartOrder’ model to get built something like ‘FROM PartOrder t LEFT JOIN Customer customer on t.customerNbr=customer.customerNbr’?