Group.mongodb.xml 888 B

12345678910111213141516171819202122
  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\Group" collection="fos_user_group">
  7. <field name="name" fieldName="name" type="string" />
  8. <field name="roles" fieldName="roles" type="hash" />
  9. <indexes>
  10. <index unique="true" dropDups="true">
  11. <key name="name" order="asc" />
  12. <option name="safe" value="true" />
  13. </index>
  14. </indexes>
  15. </mapped-superclass>
  16. </doctrine-mongo-mapping>