# test that _id is not stripped and prepositions in rel names are
# ignored
- ok ($class4->has_relationship('loader_test5_to_ids'),
+ ok ($rsobj4->result_source->has_relationship('loader_test5_to_ids'),
"rel with preposition 'to' and _id pluralized backward-compatibly");
- ok ($class4->has_relationship('loader_test5_from_ids'),
+ ok ($rsobj4->result_source->has_relationship('loader_test5_from_ids'),
"rel with preposition 'from' and _id pluralized backward-compatibly");
# find on multi-col pk
isa_ok( $rs_rel4->first, $class4);
# check rel naming with prepositions
- ok ($class4->has_relationship('loader_test5s_to'),
+ ok ($rsobj4->result_source->has_relationship('loader_test5s_to'),
"rel with preposition 'to' pluralized correctly");
- ok ($class4->has_relationship('loader_test5s_from'),
+ ok ($rsobj4->result_source->has_relationship('loader_test5s_from'),
"rel with preposition 'from' pluralized correctly");
# find on multi-col pk