title: Symfony Doctrine Mapping:Import & Table Association
body: <p>I am working with Symfony 2.3 on a new project using an existing database with numerous associations - many-to-many, one-to-many etc. During my initial import last week, I found somewhere in the docs stipulated that a doctrine:mapping:import would generate orm.yml files of my database which it did without a hitch. However, I also see that only ManytoOne relationships are generated in the yml files ... not any other kind of associations.</p>
  
  <p>My statement was:</p>
  
  <pre><code> $ php app/console doctrine:mapping:import –em=buv DBImportTestBundle yml
  </code></pre>
  
  <p>Also, I did a generate entities to create classes and basic CRUD for each table using:</p>
  
  <pre><code> $ php app/console doctrine:generate:entities DBImportTestBundle
  </code></pre>
  
  <p>This also worked EXCEPT that I do not see any annotated associations generated in the doc blocks for any of the entity properties.</p>
  
  <p>I'm looking through the docs but do not see any specific information on the exact requirements for associations on imported dbs. It could be I'm not looking in the right place.</p>
  
  <p>I'm trying to determine the most efficient way to maintain my db schema within symfony/doctrine ... My understanding was that I would need to explicitly define certain associations manually but I'm not sure what the exact requirements would be OR if perhaps I'm simply not passing in the correct arguments to create my annotated associations via generate:entities.</p>
  
  <p>Can someone point me to any docs that refer to what I'm talking about or explain the proper approach to defining complex associations within doctrine? Thank you.</p>