Open cantino opened 10 years ago
Hey @cantino, I am about to take a flight. I'll look at this as soon as I can. In the next days I'll be a little bit disconnected though.
Also, it would be helpful if you can fork and push a failing spec
Yes, I can push up those failing specs early next week.
I think we found a simpler test case in #7.
We're running into the issue where polymorphic STI associations do not work correctly. Here is an example, taken from the tests. I've converted
project_id
on LineItem tosubject_id
andsubject_type
, giving us:However, when I try to load a generated LineItem's
subject
, I get:Which makes sense because the type in the remote db would be
Cars::German::SportsCar
. Do I need to copy the subject first, then somehow updatereference_remote_class_in_polymorphic_association
andmake_type_attribute_point_to_local_class_if_needed
?