Many to many relation fix

Doctrine annotation driver has m2m relations issue. This PR fix generation m2m Entity marked as {d:m2m}true{/d:m2m}