File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Resources/config/doctrine-model Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 12
12
class RedirectRoute extends Route implements RedirectRouteInterface
13
13
{
14
14
/**
15
- * Absolute uri to redirect to
15
+ * Absolute uri to redirect to.
16
16
*/
17
17
protected $ uri ;
18
18
19
19
/**
20
- * The name of a target route (for use with standard symfony routes)
20
+ * The name of a target route (for use with standard symfony routes).
21
21
*/
22
22
protected $ routeName ;
23
23
24
24
/**
25
- * Target route document to redirect to different dynamic route
25
+ * Target route document to redirect to different dynamic route.
26
26
*/
27
27
protected $ routeTarget ;
28
28
29
29
/**
30
- * Whether this is a permanent redirect
30
+ * Whether this is a permanent redirect. Defaults to false.
31
31
*/
32
- protected $ permanent ;
32
+ protected $ permanent = false ;
33
33
34
34
/**
35
35
* @var array
Original file line number Diff line number Diff line change 6
6
>
7
7
8
8
<mapped-superclass name =" Symfony\Cmf\Bundle\RoutingBundle\Model\RedirectRoute" >
9
- <field name =" uri" type =" uri" />
10
- <field name =" routeName" type =" string" />
9
+ <field name =" uri" type =" uri" nullable = " true " />
10
+ <field name =" routeName" type =" string" nullable = " true " />
11
11
<field name =" permanent" type =" boolean" />
12
- <field name =" parameters" type =" string" assoc =" " />
12
+ <field name =" parameters" type =" string" assoc =" " nullable = " true " />
13
13
<reference-one name =" routeTarget" />
14
14
</mapped-superclass >
15
15
Original file line number Diff line number Diff line change 7
7
>
8
8
9
9
<mapped-superclass name =" Symfony\Cmf\Bundle\RoutingBundle\Model\Route" referenceable =" true" >
10
- <field name =" variablePattern" type =" string" />
10
+ <field name =" variablePattern" type =" string" nullable = " true " />
11
11
<field name =" addFormatPattern" type =" boolean" />
12
12
<reference-one name =" content" property =" routeContent" />
13
13
</mapped-superclass >
You can’t perform that action at this time.
0 commit comments