title: database error on schema validate with Doctrine
body: <p>I'm attempting to create a database using the doctrine orm with an application built by someone else. I'm getting Database errors, and I'm unsure if I'm unclear on the concept, or if I need to adjust the Annotations.</p>
  
  <p>Command and output:</p>
  
  <pre><code>php bin/console doctrine:schema:validate
  
  Mapping
  -------
  
  
  [OK] The mapping files are correct.
  
  
  Database
  --------
  
  15:06:28 ERROR     [console] Error thrown while running command "doctrine:schema:validate". Message: "Invalid index-name unique_organization_id_application_id given, has to be [a-zA-Z0-9_]" ["error" =&gt; Doctrine\DBAL\Schema\SchemaException { …},"command" =&gt; "doctrine:schema:validate","message" =&gt; "Invalid index-name unique_organization_id_application_id given, has to be [a-zA-Z0-9_]"] []
  
  
  [Doctrine\DBAL\Schema\SchemaException]
  Invalid index-name unique_organization_id_application_id given, has to be [a-zA-Z0-9_]
  </code></pre>
  
  <p>It almost sounds like the database isn't set up properly(though I thought this was the first step before setting up the database schema)</p>
  
  <p>The annotation:</p>
  
  <pre><code>@ORM\Table(name="applications", uniqueConstraints={@UniqueConstraint(name="﻿unique_organization_id_application_id", columns={"organization_id", "application_id"})})
  </code></pre>
  
  <p>And this is where I'm out of my depth. <code>organizationId</code> and <code>applicationId</code> are both private members(?) of the class, with getters and setters. <code>﻿unique_organization_id_application_id</code> isn't found anywhere in the class.</p>