User.mongodb.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. <mapped-superclass name="FOS\UserBundle\Document\User" collection="fos_user_user">
  7. <field name="username" fieldName="username" type="string" />
  8. <field name="usernameCanonical" fieldName="usernameCanonical" type="string" />
  9. <field name="email" fieldName="email" type="string" />
  10. <field name="emailCanonical" fieldName="emailCanonical" type="string" />
  11. <field name="enabled" fieldName="enabled" type="boolean" />
  12. <field name="salt" fieldName="salt" type="string" />
  13. <field name="password" fieldName="password" type="string" />
  14. <field name="lastLogin" fieldName="lastLogin" type="date" />
  15. <field name="locked" fieldName="locked" type="boolean" />
  16. <field name="expired" fieldName="expired" type="boolean" />
  17. <field name="expiresAt" fieldName="expiresAt" type="date" />
  18. <field name="confirmationToken" fieldName="confirmationToken" type="string" />
  19. <field name="passwordRequestedAt" fieldName="passwordRequestedAt" type="date" />
  20. <field name="roles" fieldName="roles" type="hash" />
  21. <indexes>
  22. <index unique="true" dropDups="true">
  23. <key name="usernameCanonical" order="asc" />
  24. <option name="safe" value="true" />
  25. </index>
  26. <index unique="true" dropDups="true">
  27. <key name="emailCanonical" order="asc" />
  28. <option name="safe" value="true" />
  29. </index>
  30. </indexes>
  31. </mapped-superclass>
  32. </doctrine-mongo-mapping>