How to flip physics when flipping sprite?

I create a physics shape using physics editor and add it to the sprite.

My question is, what is the right way to flip the physics also if one wants to flip the sprite by doing flipx or flipy?

Likewise what if i want to scaleX or scaleY?