Added support for polymorphic belongs_to association

Needed to delete store adapter represented using a polymorphic belongs_to association