-
Notifications
You must be signed in to change notification settings - Fork 397
/
behavior-sluggable-schema.xml
32 lines (28 loc) · 1.46 KB
/
behavior-sluggable-schema.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<database name="bookstore-behavior" defaultIdMethod="native" package="behavior.sluggable" namespace="Propel\Tests\Bookstore\Behavior">
<table name="table13">
<column name="id" required="true" primaryKey="true" autoIncrement="true" type="INTEGER"/>
<column name="title" type="VARCHAR" size="100" primaryString="true"/>
<behavior name="sluggable"/>
</table>
<table name="table14">
<column name="id" required="true" primaryKey="true" autoIncrement="true" type="INTEGER"/>
<column name="title" type="VARCHAR" size="100" primaryString="true"/>
<column name="url" type="VARCHAR" size="100"/>
<behavior name="sluggable">
<parameter name="slug_column" value="url"/>
<parameter name="slug_pattern" value="/foo/{Title}/bar"/>
<parameter name="replace_pattern" value="/[^\w\/]+/"/>
<parameter name="separator" value="/"/>
<parameter name="permanent" value="true"/>
</behavior>
</table>
<table name="table_with_scope">
<column name="id" required="true" primaryKey="true" autoIncrement="true" type="INTEGER"/>
<column name="scope" type="INTEGER" required="false"/>
<column name="title" type="VARCHAR" size="100" primaryString="true"/>
<behavior name="sluggable">
<parameter name="scope_column" value="scope"/>
</behavior>
</table>
</database>