Added $getRelationship() method