Skip to content

Commit

Permalink
Added unique_base to schema and doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
r1pp3rj4ck committed Jul 7, 2014
1 parent de89aae commit a57bd38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Gedmo/Sluggable/Sluggable.php
Expand Up @@ -25,6 +25,7 @@ interface Sluggable
* available options:
* updatable (optional, default=true) - true to update the slug on sluggable field changes, false - otherwise
* unique (optional, default=true) - true if slug should be unique and if identical it will be prefixed, false - otherwise
* unique_base (optional, default="") - used in conjunction with unique. The name of the entity property that should be used as a key when doing a uniqueness check
* separator (optional, default="-") - separator which will separate words in slug
* prefix (optional, default="") - suffix which will be added to the generated slug
* suffix (optional, default="") - prefix which will be added to the generated slug
Expand Down
1 change: 1 addition & 0 deletions schemas/orm/doctrine-extensions-mapping-2-2.xsd
Expand Up @@ -78,6 +78,7 @@ people to push their own additional attributes/elements into the same field elem
</xs:sequence>
<xs:attribute name="fields" type="xs:string" use="required"/>
<xs:attribute name="unique" type="xs:boolean" use="optional" />
<xs:attribute name="unique_base" type="xs:string" use="optional" />
<xs:attribute name="updatable" type="xs:boolean" use="optional" />
<xs:attribute name="separator" type="xs:string" use="optional" />
<xs:attribute name="style" type="gedmo:slug-style" use="optional" />
Expand Down

0 comments on commit a57bd38

Please sign in to comment.