<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                  http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">

    <entity name="Qcm\Bundle\PublicBundle\Entity\Answer" table="answer">
        <id name="id" type="integer" column="id">
            <generator strategy="AUTO"/>
        </id>

        <many-to-one target-entity="Qcm\Bundle\PublicBundle\Entity\Question" field="question" inversed-by="answers">
            <join-column name="question_id" nullable="false" />
        </many-to-one>
    </entity>

</doctrine-mapping>

<?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                  http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">

    <entity name="Qcm\Bundle\PublicBundle\Entity\Answer" table="answer">
        <id name="id" type="integer" column="id">
            <generator strategy="AUTO"/>
        </id>

        <many-to-one target-entity="Qcm\Bundle\PublicBundle\Entity\Question" field="question" inversed-by="answers">
            <join-column name="question_id" nullable="false" referenced-column-name="id" />
        </many-to-one>
    </entity>

</doctrine-mapping>

Fix doctrine mapping for answer
Fix doctrine mapping for answer

Signed-off-by: Jérémy Jegou <06340b1fff1825df2bd0b37e531a5b17f09dfe36@gmail.com>
