Skip to content

Commit

Permalink
Merge pull request #1891 from olvlvl/patch-1
Browse files Browse the repository at this point in the history
Fix fieldName with field-name
  • Loading branch information
malarzm committed Nov 13, 2018
2 parents b8f7dd4 + 7d9a61e commit 9625a89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/en/reference/xml-mapping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ of several common elements:
<document name="Documents\User" db="documents" collection="users">
<id />
<field fieldName="username" name="login" type="string" />
<field fieldName="email" type="string" unique="true" order="desc" />
<field fieldName="createdAt" type="date" />
<field field-name="username" name="login" type="string" />
<field field-name="email" type="string" unique="true" order="desc" />
<field field-name="createdAt" type="date" />
<indexes>
<index unique="true" dropDups="true">
<key name="username" order="desc">
<key name="username" order="desc" />
<option name="safe" value="true" />
</index>
</indexes>
Expand Down

0 comments on commit 9625a89

Please sign in to comment.