Must specify table name with unique constraints and indexes with Doctrine 2
If a unique-constraint or an additional index is needed for a table/object, the Doctrine 2 ORM has the possiblity to do this with a special annotation in the head of the class as shown in the following example:
If the full table name is not given in the annotation, like in the example above, the Doctrine 2 ORM generates a table which has exactly the name of the class. This collides with the new table-naming schema which normally names table like <package>_<subfolder of Domain\Model folder - if existing>_<classname>.
If you fully qualify the @table annotation like shown below it works fine.
It should not be necessary to furnish the fully qualified table-name unless explicitly wanted or needed.