12345678910111213141516171819202122232425262728293031323334 |
- <?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="hash"/>
- <field name="twitterUid" type="string"/>
- <field name="twitterName" type="string"/>
- <field name="twitterData" type="hash"/>
- <field name="gplusUid" type="string"/>
- <field name="gplusName" type="string"/>
- <field name="gplusData" type="hash"/>
- <!-- 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>
|