Skip to content

Commit 22e6e40

Browse files
committed
adjust nullable fields
1 parent 48d55c7 commit 22e6e40

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Model/RedirectRoute.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
class RedirectRoute extends Route implements RedirectRouteInterface
1313
{
1414
/**
15-
* Absolute uri to redirect to
15+
* Absolute uri to redirect to.
1616
*/
1717
protected $uri;
1818

1919
/**
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).
2121
*/
2222
protected $routeName;
2323

2424
/**
25-
* Target route document to redirect to different dynamic route
25+
* Target route document to redirect to different dynamic route.
2626
*/
2727
protected $routeTarget;
2828

2929
/**
30-
* Whether this is a permanent redirect
30+
* Whether this is a permanent redirect. Defaults to false.
3131
*/
32-
protected $permanent;
32+
protected $permanent = false;
3333

3434
/**
3535
* @var array

Resources/config/doctrine-model/RedirectRoute.phpcr.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
>
77

88
<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"/>
1111
<field name="permanent" type="boolean"/>
12-
<field name="parameters" type="string" assoc=""/>
12+
<field name="parameters" type="string" assoc="" nullable="true"/>
1313
<reference-one name="routeTarget"/>
1414
</mapped-superclass>
1515

Resources/config/doctrine-model/Route.phpcr.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
>
88

99
<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"/>
1111
<field name="addFormatPattern" type="boolean"/>
1212
<reference-one name="content" property="routeContent"/>
1313
</mapped-superclass>

0 commit comments

Comments
 (0)