/
BaseUser.mongodb.xml
43 lines (37 loc) · 1.95 KB
/
BaseUser.mongodb.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?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">
<mapped-superclass name="Sonata\UserBundle\Document\BaseUser">
<field name="createdAt" type="date" />
<field name="updatedAt" type="date" />
<!-- Profile fields -->
<field name="dateOfBirth" type="date" />
<field name="firstname" type="string" />
<field name="lastname" type="string" />
<field name="website" type="string" />
<field name="biography" type="string" />
<field name="gender" type="string" />
<field name="locale" type="string" />
<field name="timezone" type="string" />
<field name="phone" type="string" />
<!-- social fields -->
<field name="facebookUid" type="string" />
<field name="facebookName" type="string" />
<field name="facebookData" type="json" />
<field name="twitterUid" type="string" />
<field name="twitterName" type="string" />
<field name="twitterData" type="json" />
<field name="gplusUid" type="string" />
<field name="gplusName" type="string" />
<field name="gplusData" type="json" />
<!-- extra security fields -->
<field name="token" type="string" />
<field name="twoStepVerificationCode" type="string" />
<lifecycle-callbacks>
<lifecycle-callback type="prePersist" method="prePersist" />
<lifecycle-callback type="preUpdate" method="preUpdate" />
</lifecycle-callbacks>
</mapped-superclass>
</doctrine-mapping>