Skip to content

Commit

Permalink
Changed unique_base to unique-base in XML driver
Browse files Browse the repository at this point in the history
  • Loading branch information
attilabukor committed Jul 8, 2014
1 parent a57bd38 commit c3ceee8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Gedmo/Sluggable/Mapping/Driver/Xml.php
Expand Up @@ -94,8 +94,8 @@ public function readExtendedMetadata($meta, array &$config)
$this->_getAttribute($slug, 'dateFormat') : 'Y-m-d-H:i',
'unique' => $this->_isAttributeSet($slug, 'unique') ?
$this->_getBooleanAttribute($slug, 'unique') : true,
'unique_base' => $this->_isAttributeSet($slug, 'unique_base') ?
$this->_getAttribute($slug, 'unique_base') : null,
'unique_base' => $this->_isAttributeSet($slug, 'unique-base') ?
$this->_getAttribute($slug, 'unique-base') : null,
'separator' => $this->_isAttributeSet($slug, 'separator') ?
$this->_getAttribute($slug, 'separator') : '-',
'prefix' => $this->_isAttributeSet($slug, 'prefix') ?
Expand Down
2 changes: 1 addition & 1 deletion schemas/orm/doctrine-extensions-mapping-2-2.xsd
Expand Up @@ -78,7 +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="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 c3ceee8

Please sign in to comment.