title: Create my own entity generator on symfony using doctrine generator
body: <p>I am building an entity generator in order to update my DB's structure and data according to a distant one (DB), via SOAP WS...</p>
  
  <p>I get the structure from an array, and am currently writing my entity classes by myself, with a file_put_content().</p>
  
  <p>But as I advance, I can't help noticing that the Doctrine\ORM\Tools\EntityGenerator already does what I intend to do, way better I would ever be able to!!</p>
  
  <p>So i was wondering if there was a way to use this implemented generator from my controller?
  I mean, this is what Symfony is all about right? Using existing classes &amp; bundles from anywhere in my code? :)</p>
  
  <p>Any idea someOne?</p>
  
  <p>Thx :)</p>