<?xml version="1.0" encoding="UTF-8"?>

<!--
 This file is part of the FOSCommentBundle package.

 (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>

 This source file is subject to the MIT license that is bundled
 with this source code in the file LICENSE.
-->

<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
                        http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">

    <mapped-superclass name="FOS\CommentBundle\Document\Vote" collection="fos_comment_vote" customId="true" change-tracking-policy="DEFERRED_EXPLICIT">

        <field name="id" id="true" />

        <field name="createdAt" fieldName="createdAt" type="date" />

        <field name="value" fieldName="value" type="int" />

    </mapped-superclass>

</doctrine-mongo-mapping>
