title: Problems with Doctrine 2 CRUD generator and identifier which isn't called "id"
body: <p><strong>Here is the situation:</strong>
  I'm kind of new to Symfony2 and liking all about it, but I'm having an issue with Doctrine's CRUD generator. I've generated entities with Doctrine starting from YAML files but can't generate their CRUD with the doctrine:generate:crud command line.</p>
  
  <p><strong>The problem:</strong>
  For some reason I need to set an 'id' field and a getId() method, but it kind of ruins all the work I've done on class diagrams and relation schema…</p>
  
  <p><strong>My question is:</strong>
  Is there a way to keep my field names as they are and get Doctrine to still generate my CRUDs?</p>
  
  <p>A YAML example:</p>
  
  <pre><code>XXX\XXXBundle\Entity\Utilisateur:
   type: entity
   table: utilisateur
   id:
    pseudo:
     type: string
   fields:
    nom:
     type: string
  </code></pre>
  
  <p>I'm stuck with this… I've tried to change it for:</p>
  
  <pre><code>XXX\XXXBundle\Entity\Utilisateur:
   type: entity
   table: utilisateur
   fields:
    pseudo: # Le pseudo correspond au nom affiché pour identifier un utilisateur.
     type: string
     id: true
  </code></pre>
  
  <p>But it doesn't change any thing I always end up having this:</p>
  
  <pre><code>[RuntimeException]                                                                                      
  The CRUD generator expects the entity object has a primary key field named "id" with a getId() method.
  </code></pre>
  
  <p>I'd be really grateful if anyone could help out a bit! Worst case scenario I'll have to modify all my entities to add a stupid ID field with an auto-generated integer…</p>