Difference between ～に伴う【ともなう】 and ～を伴う【ともなう】


> このしごとはきけん **を伴う**

I am aware of the `**に** ともなう` construct.  
Is this any different?  
When would ともなう take the を particle rather than に?




The difference is the object.

“AがBに伴う” = “A accompanies B”

“BがAを伴う” = “B is accompanied by A”




The difference is the object.

“AがBに伴う” = “A accompanies B”

“BがAを伴う” = “B is accompanied by A”

