Allow satisfying dependencies to polymorphic relationships with objects from context