Stefano Sala
52c07c74ea
Deprecated max_length and pattern options
2014-03-26 10:50:40 +01:00
Bernhard Schussek
a9268c4a99
[Form] Changed Form::getErrors() to return an iterator and added two optional parameters $deep and $flatten
2014-01-10 17:41:45 +01:00
Bernhard Schussek
c8a0ee6b3a
[Form] Errors now reference the field they were added to and the violation/exception that caused them
2014-01-10 11:44:16 +01:00
Fabien Potencier
67ae8fab19
feature #8224 [Form][2.4] added an option for multiple files upload ( closes #1400 ) (bamarni)
...
This PR was squashed before being merged into the 2.5-dev branch (closes #8224 ).
Discussion
----------
[Form][2.4] added an option for multiple files upload (closes #1400 )
| Q | A
| ------------- | ---
| Bug fix? | [no]
| New feature? | [yes]
| BC breaks? | [no]
| Deprecations? | [no]
| Tests pass? | [yes]
| Fixed tickets | [#1400 ]
| License | MIT
| Doc PR | [todo]
Commits
-------
c8c6448
[Form][2.4] added an option for multiple files upload (closes #1400 )
2013-12-17 13:58:30 +01:00
Bilal Amarni
c8c6448168
[Form][2.4] added an option for multiple files upload ( closes #1400 )
2013-12-17 13:57:55 +01:00
Bernhard Schussek
2048cf6d35
[Form] Deprecated the CSRF implementation and added an optional dependency to the Security CSRF sub-component instead
2013-09-27 10:12:40 +02:00
Bernhard Schussek
793397198a
[Form] Added radio button for empty value to expanded single-choice fields
2013-05-05 20:32:52 +02:00
Bernhard Schussek
549a308a37
[Form] Fixed CSRF error messages to be translated and added "csrf_message" option
2013-05-03 08:38:36 +02:00
Bernhard Schussek
441222eda7
[Form] *_SET_DATA events are now guaranteed to be fired *after* the initial children were added
2013-04-29 17:31:30 +02:00
Bernhard Schussek
eabb7a17ed
[Form] Added support for PATCH requests
2013-04-25 16:09:14 +02:00
Bernhard Schussek
41b0127963
[Form] Deprecated bind() and isBound() in favor of submit() and isSubmitted()
2013-04-20 18:05:58 +02:00
Bernhard Schussek
ae7c3781b5
[Form] Renamed form processors to request handlers
2013-04-20 17:36:19 +02:00
Alexander Kotynia
bf9382e6cd
[Form] Make exception handling consistent with other components
2013-04-20 00:34:27 +03:00
Fabien Potencier
d6376c1b49
merged branch bschussek/issue5899 (PR #6573 )
...
This PR was merged into the master branch.
Discussion
----------
[2.3] [Form] Renamed option "virtual" to "inherit_data" and improved handling of such forms
Bug fix: yes
Feature addition: yes
Backwards compatibility break: yes
Symfony2 tests pass: yes
Fixes the following tickets: #5899 , #5720 , #5578
Todo: -
License of the code: MIT
Documentation PR: symfony/symfony-docs#2107
This PR renames the option "virtual" to "inherit_data" for more clarity (the old option is deprecated and usable until 2.3). It also fixes the behavior of forms having that option set.
Forms with that option set will now correctly return their parents' data from `getData()`, `getNormData()` and `getViewData()`. Furthermore, `getPropertyPath()` was fixed for forms that inherit their parent data.
Commits
-------
1290b80
[Form] Fixed the deprecation notes for the "virtual" option
ac2ca44
[Form] Moved parent data inheritance from data mappers to Form
8ea5e1a
[Form] Renamed option "virtual" to "inherit_data"
2013-04-19 16:34:09 +02:00
WouterJ
8da61295a4
Moved FormIntegrationTestCase and FormPerformanceTestCase to the Test namespace
2013-04-19 14:44:07 +02:00
WouterJ
e46f841a42
Moved TypeTestCase to it's own namespace
2013-04-19 14:44:02 +02:00
Bernhard Schussek
1290b804e0
[Form] Fixed the deprecation notes for the "virtual" option
2013-04-19 10:09:37 +02:00
Bernhard Schussek
ac2ca44b5a
[Form] Moved parent data inheritance from data mappers to Form
2013-04-19 10:09:37 +02:00
Bernhard Schussek
8ea5e1a678
[Form] Renamed option "virtual" to "inherit_data"
2013-04-19 10:09:37 +02:00
Bernhard Schussek
81f8c67566
[Form] Implemented form processors
2013-04-18 11:02:51 +02:00
Bernhard Schussek
600007b71f
[Form] The option "validation_groups" can now be set to false to disable validation. This is identical to setting it to an empty array.
2013-04-13 16:46:29 +02:00
77web
8adb0e3673
[Form]fixed FormRenderer::humanize() to humanize camel cased label
2013-02-11 12:02:23 +01:00
Bernhard Schussek
1bae7b242c
[PropertyAccess] Extracted PropertyAccess component out of Form
2013-01-10 09:49:37 +01:00
Bernhard Schussek
56d61eb6da
[Form][Validator] Added BC breaks in unstable code to the CHANGELOG
2013-01-08 14:45:43 +01:00
Bernhard Schussek
bcc5552de4
[Form] Protected methods in FormConfigBuilder and FormBuilder from being called when it is turned into a FormConfigInterface instance
2013-01-07 16:58:41 +01:00
Bernhard Schussek
fee1bf5448
[Form] Introduced base ExceptionInterface
2013-01-07 16:58:41 +01:00
Bernhard Schussek
e0b4480a1b
[Form] Removed separator characters between choice or text fields in DateType
2013-01-05 16:18:31 +01:00
Bernhard Schussek
fb71964adc
[Form] Added an alternative signature Form::add($name, $type, $options)
2012-12-18 11:29:26 +01:00
Fabien Potencier
bde2e26b69
[Form] updated CHANGELOG
2012-10-25 15:43:31 +02:00
Bernhard Schussek
87ccb6adb9
[Form] Added entry point "Forms" for more convenient usage outside of Symfony
2012-07-30 11:41:38 +02:00
Bernhard Schussek
8070e6997e
[Form] Fixed ResolvedFormType to really be replaceable
2012-07-29 19:13:45 +02:00
Bernhard Schussek
686bf6b664
[Form] Made original data of a form and choices accessible in templates
2012-07-23 19:24:46 +02:00
Fabien Potencier
214e0554be
merged branch bschussek/renderer (PR #5006 )
...
Commits
-------
dc3a680
[Form] Improved FormRenderer API to reduce the size of the function call stack during rendering
Discussion
----------
[Form] Improved FormRenderer API to decrease the function call stack
Bug fix: no
Feature addition: no
Backwards compatibility break: **yes**
Symfony2 tests pass: yes
Fixes the following tickets: #4962 , #4973
Todo: -
This PR reduces the function call stack size when rendering by directly calling the methods `renderBlock` and `searchAndRenderBlock` (formerly `renderSection`) and removing the delegating methods `render(Widget|Label|Row|...)`.
It breaks BC in that PHP templates now need to pass the FormView instance to `block` (formerly `renderBlock`). This is necessary, otherwise that function may behave buggy in special circumstances.
Otherwise this PR cleans up API method and parameter names to improve clarity.
2012-07-22 09:50:28 +02:00
Bernhard Schussek
eccc5bd0c6
[Form] Restored BC in AbstractType::getDefaultOptions() and getAllowedOptionValues()
2012-07-22 09:36:58 +02:00
Bernhard Schussek
dc3a680cd3
[Form] Improved FormRenderer API to reduce the size of the function call stack during rendering
2012-07-22 09:29:35 +02:00
Bernhard Schussek
921681658c
[Form] Turned Twig filters into tests
2012-07-21 17:26:50 +02:00
Bernhard Schussek
310f985b99
[Form] Added a layer of 2.0 BC methods to FormView and updated UPGRADE and CHANGELOG
2012-07-21 13:49:32 +02:00
Bernhard Schussek
d072f35ea0
[Form] The properties of FormView are now accessed directly in order to increase performance (PHP +200ms, Twig +150ms)
2012-07-21 12:56:11 +02:00
Bernhard Schussek
b4ec7f54eb
Fixed my rubbish English
2012-07-16 21:54:46 +02:00
Bernhard Schussek
629093ed25
[Form] Extracted common parts of FormHelper and FormExtension into separate classes
2012-07-16 21:39:27 +02:00
Bilal Amarni
b4d1bdf9e6
[Form] added a bc break note about the tag alias matching
2012-07-15 16:34:11 +03:00
Bernhard Schussek
69e5e58629
[Form] Individual rows of CollectionType cannot be styled anymore for performance reasons
2012-07-14 12:10:29 +02:00
Bernhard Schussek
cd7835d8d2
[Form] Cached the form type hierarchy in order to improve performance
2012-07-13 20:39:30 +02:00
Bernhard Schussek
c919b81ca9
[Form] Fixed TransformationFailedExceptions to be caught in the model transformers
2012-07-11 16:50:44 +02:00
Bernhard Schussek
7a76dbad20
[Form] Renamed the options "data_timezone" and "user_timezone"
2012-07-11 09:44:09 +02:00
Bernhard Schussek
ded6c0305c
[Form] DateTimeType now handles RFC 3339 dates as provided by HTML5
2012-07-11 09:06:31 +02:00
Bernhard Schussek
7e8b622802
[Form] Added the option "format" to DateTimeType
2012-07-10 17:23:19 +02:00
Bernhard Schussek
9eeb20044f
[Form] Changed the default format of DateType to "yyyy-MM-dd" to support HTML 5 out of the box
2012-07-10 16:10:57 +02:00
Bernhard Schussek
5b057f89b0
[Form] Fixed DateType to use "format" for creating the year and day choices
2012-07-10 14:53:17 +02:00
Fabien Potencier
4bab36b2c7
merged branch bschussek/issue3899 (PR #4813 )
...
Commits
-------
9c94b48
[Form] Fixed the "data" option to supersede default data set in the model
Discussion
----------
[Form] Fixed the "data" option to supersede default data set in the model
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #3899
Todo: -
2012-07-10 08:22:37 +02:00