added method updateRelationPriority to model ObjectRelation.