Added handling of polymorphic relations in models