forked from stephpy/timeline-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComponent.mongodb.xml
More file actions
23 lines (22 loc) · 1.21 KB
/
Component.mongodb.xml
File metadata and controls
23 lines (22 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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">
<mapped-superclass name="Spy\TimelineBundle\Document\Component">
<field name="model" fieldName="model" type="string" />
<field name="identifier" fieldName="identifier" type="string" />
<field name="hash" fieldName="hash" type="string" />
<field name="identifierMigrated" fieldName="identifier_migrated" type="string" length="255" nullable="true" />
<field name="hashMigrated" fieldName="hash_migrated" type="string" length="255" nullable="true" unique="true" />
<indexes>
<index>
<key name="model" order="asc" />
<key name="identifier" order="asc" />
</index>
<index unique="true">
<key name="hash" order="asc" />
</index>
</indexes>
</mapped-superclass>
</doctrine-mongo-mapping>