<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd">

    <entity name="Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm\Route" table="orm_routes">

        <id name="id" type="integer" column="id">
            <generator strategy="AUTO"/>
        </id>

        <!-- we hardcode the column name to overwrite column naming strategies as we have to define the index on the column name -->
        <field name="name" type="string" unique="true" column="name"/>
        <field name="position" type="integer"/>

        <indexes>
            <index name="name_idx" columns="name"/>
        </indexes>

    </entity>

</doctrine-mapping>
