fix handling association in the case of mixed uuid/integer primary keys