Merge pull request #15343 from dontfidget/fix_polymorphic_automatic_inverse_of

prevent bad automatic inverse_of association