Fixed getRelationships with transaction
Fixed getRelationships with transaction