CFY-1373 use new ctx api for relationship operations