<?xml version="1.0" encoding="UTF-8"?>
<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">
    <document name="Nord\Lumen\FileManager\Doctrine\ODM\File" collection="files">
        <field fieldName="id" type="object_id" id="true"/>
        <field fieldName="shortId" type="short_id" unique="true"/>
        <field fieldName="name" type="string"/>
        <field fieldName="extension" type="string"/>
        <field fieldName="path" type="string" nullable="true"/>
        <field fieldName="mimeType" type="string"/>
        <field fieldName="byteSize" type="integer"/>
        <field fieldName="data" type="json_array"/>
        <field fieldName="disk" type="string"/>
        <field fieldName="savedAt" type="mongodate"/>
    </document>

</doctrine-mongo-mapping>

<?xml version="1.0" encoding="UTF-8"?>
<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">
    <document name="Nord\Lumen\FileManager\Doctrine\ODM\File" collection="files">
        <field fieldName="id" type="object_id" id="true"/>
        <field fieldName="shortId" type="string" unique="true"/>
        <field fieldName="name" type="string"/>
        <field fieldName="extension" type="string"/>
        <field fieldName="path" type="string" nullable="true"/>
        <field fieldName="mimeType" type="string"/>
        <field fieldName="byteSize" type="integer"/>
        <field fieldName="data" type="hash"/>
        <field fieldName="disk" type="string"/>
        <field fieldName="savedAt" type="date"/>
    </document>

</doctrine-mongo-mapping>

Fix File Doctrine ODM mapping
Fix File Doctrine ODM mapping
