瀏覽代碼

[doc] sluggable xml mapping documentation was outdated by misstake

gedi 13 年之前
父節點
當前提交
e1bac97911
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      doc/sluggable.md

+ 1 - 7
doc/sluggable.md

@@ -283,13 +283,7 @@ Entity\Article:
         <field name="code" type="string" length="16"/>
         <field name="ean" type="string" length="13"/>
         <field name="slug" type="string" length="156" unique="true">
-            <gedmo:slug unique="true" style="camel" updatable="false" separator="_">
-                <fields>
-                    <field>title</field>
-                    <field>code</field>
-                    <field>ean</field>
-                </fields>
-            </gedmo:slug>
+            <gedmo:slug unique="true" style="camel" updatable="false" separator="_", fields="title,code,ean" />
         </field>
     </entity>
 </doctrine-mapping>