added Model.$getRelationship() method please check documentation