title: Symfony2 Doctrine indexes using YAML
body: <p>Because documentation on YAML in Doctrine isn't really informative, I was trying to create indexes for few (already existing) tables from exaple codes. I put some additional lines to my *.orm.yml files, but after calling <code>app/console doctrine:generate:entities</code> and <code>app/console doctrine:schema:update --force</code> I get a message that my database is already in sync.That's kind of problematic - I'm not an expert in Symfony nor database management at all, but as far as I know indexing your tables is kind of crucial when I use queries a lot, mostly searching by values from one column of a table, ain't I right? So please, help me to create indexes via Symfony/Doctrine using YAML, I have no idea what more I can do.</p>
  
  <p>Here's one of my .orm.yml files:</p>
  
  <pre><code>Sc0\LoginBundle\Entity\LoginDictionary:
    type: entity
    table: login_dictionary
    indexes:
      login_dictionary_index:
        columns: [ name ]
  
    id:
      name:
        type: string
        length: 30
  
    fields:
      polish:
        type: string
        length: 150
        nullable: false
  </code></pre>
  
  <p>If it's important I'm using PostgreSQL for database management. Maybe I should just create standard indexes using normal postgres queries? Will Symfony 'see' those indexes created manually?</p>