This is not a bug. You have wrongly configured Skipper or Doctrine2
Depending on what you need you have to configure both (Doctrine2 and Skipper) to use the same case formatting.
In case that you configured Dcotrine to use underline you need to configure also Skipper module to export names in underline format.