You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WHATS_NEW.md
+67Lines changed: 67 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,52 @@ Service container
4
4
A service container have been added (extracted from the [symfony dependency injection component](http://components.symfony-project.org/dependency-injection/).
5
5
[More details](https://github.com/LExpress/symfony1/wiki/ServiceContainer) about the integration on symfony core.
6
6
7
+
Form
8
+
----
9
+
10
+
Many issues have been fixed for embedded form included:
11
+
12
+
* You can use `sfFormObject::updateObject()` without save, all embedded form objects are updated.
13
+
* You can use file upload into your embedded forms, files will be correctly removed in embedded forms using `sfWidgetFormInputFileEditable`.
14
+
*`sfFormObject::updateObject()` and `sfFormObject::save()` methods are call recursivly from embeded forms.
15
+
* You can use integer in `name` argument of `sfForm::embedForm`.
16
+
17
+
This fixes the following tickets :
18
+
19
+
*http://trac.symfony-project.org/ticket/4903
20
+
*http://trac.symfony-project.org/ticket/5805
21
+
*http://trac.symfony-project.org/ticket/5867
22
+
*http://trac.symfony-project.org/ticket/6937
23
+
*http://trac.symfony-project.org/ticket/7032
24
+
*http://trac.symfony-project.org/ticket/7440
25
+
*http://trac.symfony-project.org/ticket/8500
26
+
*http://trac.symfony-project.org/ticket/8800
27
+
*http://trac.symfony-project.org/ticket/9147
28
+
*http://trac.symfony-project.org/ticket/9172
29
+
*http://trac.symfony-project.org/ticket/9637
30
+
31
+
[BC Break] The form is not cloned anymore when you passed it to `sfForm::embedForm`.
32
+
33
+
The method `sfForm::embedFormForForeach()` have been removed.
34
+
35
+
A new method `sfForm::getErrors()` have been added.
36
+
This method returns an array with label as key and the validation error message as value (included embedded form errors).
37
+
38
+
Widget
39
+
------
40
+
41
+
A new parameter `default` have been added to the method `sfWidget::getOption`.
42
+
43
+
New widget `sfWidgetFormInputRead` have been added.
44
+
This allow you to display a readonly input without border, with the value of your choice AND an hidden input with real value and name for submit.
45
+
46
+
The method `sfWidgetFormDateRange::getStylesheets()` does not try to remove duplicate (fixes http://trac.symfony-project.org/ticket/9224).
47
+
48
+
Validator
49
+
---------
50
+
51
+
A new `sfValidatorIp`have been added (extracted from symfony2).
52
+
7
53
Action
8
54
------
9
55
@@ -48,6 +94,21 @@ Filesystem
48
94
Validator
49
95
---------
50
96
97
+
The method `sfValidatorSchema::preClean` now returns cleaned values (fixes http://trac.symfony-project.org/ticket/5952).
98
+
This allow you to modified into validotors defined in your form `preValidator.
99
+
100
+
The method `sfValidatorErrorSchema::addError` accept all possible name different of `null` as second argement.
101
+
This allow you to set integer name for named error (fixes http://trac.symfony-project.org/ticket/6112).
102
+
103
+
Also, the method `sfValidatorErrorSchema::addError` uses much less memory for complex form with many (recursive) embedded forms.
104
+
105
+
[BC Break] The method `sfValidatorErrorSchema::addErrors` only accept an `sfValidatorErrorSchema` instance as argument.
106
+
107
+
[BC Break] The `sfValidatorErrorSchema` constructor no longer accept an array of errors as second argument.
108
+
109
+
A new `sfValidatorEqual` have been added.
110
+
It take one required `value` option an an optional `strict` to compare strictly or not.
111
+
51
112
The `sfValidatorFile` now returns size error in Kilo Byte instead of Byte.
52
113
53
114
A new method `sfValidator::resetType()` have been added.
@@ -95,6 +156,12 @@ This allow you to use another directory for unit tests temporary files storage.
95
156
Doctrine
96
157
--------
97
158
159
+
### Widget
160
+
161
+
A new `sfWidgetFormDoctrineArrayChoice` have been added.
162
+
This allow you to use an array builded by a table method of a model to increase performance.
0 commit comments