Add feature to apply dynamic relationships via relate() on a model.