File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ the ``notice`` message:
686
686
687
687
.. code-block :: html+php
688
688
689
- <?php foreach ($view['session']->getFlash ('notice') as $message): ?>
689
+ <?php foreach ($view['session']->getFlashBag()->get ('notice') as $message): ?>
690
690
<div class="flash-notice">
691
691
<?php echo "<div class='flash-error'>$message</div>" ?>
692
692
</div>
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ configuration format of your choice):
54
54
55
55
<!-- app/config/config.xml -->
56
56
<framework : config >
57
- <framework : session handler-id =" session.handler.pdo" lifetime =" 3600" auto-start =" true" />
57
+ <framework : session handler-id =" session.handler.pdo" cookie- lifetime =" 3600" auto-start =" true" />
58
58
</framework : config >
59
59
60
60
<parameters >
Original file line number Diff line number Diff line change @@ -115,14 +115,18 @@ an ``Address`` instance in the ``$address`` property.
115
115
</property >
116
116
<property name =" zipCode" >
117
117
<constraint name =" NotBlank" />
118
- <constraint name =" MaxLength" >5</constraint >
118
+ <constraint name =" Length" >
119
+ <option name =" max" >5</option >
120
+ </constraint >
119
121
</property >
120
122
</class >
121
123
122
124
<class name =" Acme\HelloBundle\Entity\Author" >
123
125
<property name =" firstName" >
124
126
<constraint name =" NotBlank" />
125
- <constraint name =" MinLength" >4</constraint >
127
+ <constraint name =" Length" >
128
+ <option name =" min" >4</option >
129
+ </constraint >
126
130
</property >
127
131
<property name =" lastName" >
128
132
<constraint name =" NotBlank" />
You can’t perform that action at this time.
0 commit comments