|
3
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
|
2 |
<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping" |
|
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
|
4 |
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping |
|
|
5 |
http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd"> |
|
|
6 |
|
|
|
7 |
<mapped-superclass name="FOS\UserBundle\Document\User" collection="fos_user_user"> |
|
|
8 |
|
|
|
9 |
<field name="username" fieldName="username" type="string" /> |
|
|
10 |
|
|
|
11 |
<field name="usernameCanonical" fieldName="usernameCanonical" type="string" /> |
|
|
12 |
|
|
|
13 |
<field name="email" fieldName="email" type="string" /> |
|
|
14 |
|
|
|
15 |
<field name="emailCanonical" fieldName="emailCanonical" type="string" /> |
|
|
16 |
|
|
|
17 |
<field name="enabled" fieldName="enabled" type="boolean" /> |
|
|
18 |
|
|
|
19 |
<field name="algorithm" fieldName="algorithm" type="string" /> |
|
|
20 |
|
|
|
21 |
<field name="salt" fieldName="salt" type="string" /> |
|
|
22 |
|
|
|
23 |
<field name="password" fieldName="password" type="string" /> |
|
|
24 |
|
|
|
25 |
<field name="lastLogin" fieldName="lastLogin" type="date" /> |
|
|
26 |
|
|
|
27 |
<field name="locked" fieldName="locked" type="boolean" /> |
|
|
28 |
|
|
|
29 |
<field name="expired" fieldName="expired" type="boolean" /> |
|
|
30 |
|
|
|
31 |
<field name="expiresAt" fieldName="expiresAt" type="date" /> |
|
|
32 |
|
|
|
33 |
<field name="confirmationToken" fieldName="confirmationToken" type="string" /> |
|
|
34 |
|
|
|
35 |
<field name="passwordRequestedAt" fieldName="passwordRequestedAt" type="date" /> |
|
|
36 |
|
|
|
37 |
<field name="roles" fieldName="roles" type="hash" /> |
|
|
38 |
|
|
|
39 |
<indexes> |
|
|
40 |
<index unique="true" dropDups="true"> |
|
|
41 |
<key name="usernameCanonical" order="asc" /> |
|
|
42 |
<option name="safe" value="true" /> |
|
|
43 |
</index> |
|
|
44 |
<index unique="true" dropDups="true"> |
|
|
45 |
<key name="emailCanonical" order="asc" /> |
|
|
46 |
<option name="safe" value="true" /> |
|
|
47 |
</index> |
|
|
48 |
</indexes> |
|
|
49 |
|
|
|
50 |
</mapped-superclass> |
|
|
51 |
|
|
|
52 |
</doctrine-mongo-mapping> |