if you use the contextual menu in the code view and select two times the "use entity manager" option, the wizard insert two times the same text, and the compiler brokes, there could be a check condition to show the option, also i think i post sometimes that this option doesnt offers the same in windows and linux, i will try this weekend and tell you.