Bernhard Schussek
a38232ae0e
[Form] Fixed: FormTypeInterface::getParent() supports returning FormTypeInterface instances again
2012-08-22 16:44:02 +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
cd7835d8d2
[Form] Cached the form type hierarchy in order to improve performance
2012-07-13 20:39:30 +02:00
Bernhard Schussek
2bf4d6cff4
[Form] Fixed FormFactory not to set "data" option if not explicitely given
2012-07-13 12:12:25 +02:00
Bernhard Schussek
eba7dfeb8a
Revert "[Form] added a circular reference safeguard for form type"
...
This reverts commit ea93e4cafa
.
Conflicts:
src/Symfony/Component/Form/FormBuilder.php
src/Symfony/Component/Form/FormFactory.php
2012-07-09 18:42:18 +02:00
Bart van den Burg
1e83206e1d
[Form] FormBuilderInterface->getParent() doesn't take any arguments (anymore)
2012-06-12 15:07:40 +02:00
Bernhard Schussek
1c4f632f60
[Form] Fixed API docs and usage of FormBuilderInterface instead of FormBuilder
2012-05-25 12:34:16 +02:00
Bernhard Schussek
877d8f7195
[Form] Reversed the order of $type and $name in FormFactory::createNamed[Builder]()
2012-05-25 12:34:16 +02:00
Bernhard Schussek
027259eba4
[Form] Changed getDefaultOptions() to setDefaultOptions(OptionsResolver $resolver) in FormTypeInterface
2012-05-25 12:28:17 +02:00
Bernhard Schussek
860dd1f7d8
[Form] Adapted Form to create a deterministic property path by default
2012-05-22 09:29:53 +02:00
Tobias Schultze
5d1b3669c5
[Form] fix PhpDoc
2012-05-21 04:26:59 +02:00
Fabien Potencier
41621e42e9
fixed phpdoc @param alignment
2012-05-15 22:19:31 +02:00
Bernhard Schussek
256b7081a4
[OptionsParser] Renamed OptionsParser to OptionsResolver
2012-05-14 19:35:07 +02:00
Bernhard Schussek
b9d053edb2
[Form] Moved Options classes to new OptionsParser component
2012-05-14 19:35:07 +02:00
Bernhard Schussek
d9e142bd62
[Form] Restored and deprecated method guessMinLength
in FormTypeGuesser
2012-04-23 16:02:44 +02:00
julien.galenski
f7200e479c
[Form] added method guessPattern
to FormTypeGuesserInterface
...
rephrase changelog
2012-04-23 12:28:18 +02:00
Fabien Potencier
2786f21822
fixed CS
2012-04-20 09:05:48 +02:00
Bernhard Schussek
b7330456b6
[Form] Fixed option support in Form component
2012-04-11 16:37:42 +02:00
Victor Berchet
fc7c7f6458
[Form] Fix min/max length guessing for numeric types ( fix #3091 )
2012-03-19 23:57:21 +01:00
Bernhard Schussek
88ef52d272
[Form] Improved FormType::getDefaultOptions() to see default options defined in parent types
...
In turn, FormType::getParent() does not see default options anymore.
2012-02-07 10:51:21 +01:00
Martin Hasoň
7cecb4e71e
[Form] added support for parent of FormBuilder
2012-02-02 10:09:50 +01:00
Dariusz Górecki
3d20e399e9
[Form] Enable empty root form name
...
BC Break: no
Feature addition: yes
Symfony2 tests pass: yes
Fixes the following issues: #2790
Todo: need more testing
This PR enables usage of empty string as a form name (only at root level).
2012-01-07 15:13:48 +01:00
Fabien Potencier
142cef21bb
merged 2.0
2011-12-13 16:12:53 +01:00
Bart van den Burg
d97d7e93c0
Added a check to see if the type is a string if it's not a FormTypeInterface
2011-12-13 12:27:51 +01:00
Fabien Potencier
a1d12324f9
merged 2.0
2011-11-23 11:23:27 +01:00
Fabien Potencier
48c0f50fa2
[Form] tweaked an exception message
2011-11-22 10:24:03 +01:00
Dariusz Górecki
36cebf0924
Fix infinite loop on circullar reference in form factory
...
When `->getName()` returns the same as `getParent()` we're going to infinite loop.
2011-11-18 14:23:22 +01:00
Benjamin Eberlei
149bdb962b
Enhance error messages with regard to form type properties.
2011-11-01 14:16:02 +01:00
Fabien Potencier
7eec2ca7b3
[Form] added a form type name validator
2011-07-07 09:16:13 +02:00
Fabien Potencier
ea93e4cafa
[Form] added a circular reference safeguard for form type
2011-06-09 17:58:22 +02:00
Pascal Borreli
824e48efa7
[Various] Fixed phpdoc
2011-05-29 23:33:36 +00:00
Fabien Potencier
60b811947b
[Form] fixed error message ( closes #1034 )
2011-05-23 08:06:43 +02:00
Bernhard Schussek
216d7e415d
Merge remote branch 'mweimerskirch/form_pattern_attribute' into mweimerskirch_merge
...
Conflicts:
src/Symfony/Bundle/TwigBundle/Resources/views/Form/div_layout.html.twig
src/Symfony/Component/Form/Extension/Core/Type/FieldType.php
src/Symfony/Component/Form/Extension/Validator/ValidatorTypeGuesser.php
2011-05-18 22:49:27 +02:00
Victor Berchet
971aad0593
Merge branch 'master' into form-phpdoc-2
2011-05-15 19:24:09 +02:00
Bernhard Schussek
da28f8e3b3
[Form] Added FormTypeInterface::getAllowedOptionValues() to better validate passed options
2011-05-13 18:44:03 +02:00
Bernhard Schussek
21013b930c
[Form] Improved test coverage of FormFactory and improved error handling
2011-05-13 18:29:18 +02:00
Victor Berchet
87a6fd0f99
[Form] phpDoc
2011-05-13 11:00:04 +02:00
Victor Berchet
2db53b5e28
[Form] Order method according to their visibility to respect the CS
2011-05-11 11:00:32 +02:00
Victor Berchet
2a8f2d2bfa
[Form] fix and add some phpDoc
2011-05-10 15:33:02 +02:00
Kris Wallsmith
f3b077a0dd
[Form] removed a bunch of unused use statements
2011-05-06 14:07:16 -07:00
Michel Weimerskirch
476644a92c
[Form] Support for the HTML5 "pattern" attribute, see http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#the-pattern-attribute
...
If you use the MinLength validator with your entities, the ValidatorTypeGuesser gets the value, stored as "minlength". Then, the FormFactory generates a "pattern" attribute out of minlength and maxlength.
Modern browsers such as Chrome use this attribute to validate the form before submitting.
a "pattern" attribute is generated that validates the
2011-05-04 23:16:41 +02:00
Fabien Potencier
c6e0ccfdcd
Merge remote branch 'pborreli/form-typo'
...
* pborreli/form-typo:
[Form] Fixed typos
2011-04-24 21:56:47 +02:00
Fabien Potencier
f251eab92f
Revert "[Form] added a way to register a Form extension after creation of the FormFactory"
...
This reverts commit 2b8c7f84b5
.
2011-04-24 21:56:06 +02:00
Fabien Potencier
2f3ddb88ef
Merge remote branch 'bschussek/form'
...
* bschussek/form:
[Form] Automatically setting "data_class" option if objects are passed at the creation of a form
[Form] Improved the way passed data is handled in FormFactory
[Form] Simplified FileType code
[HttpFoundation] TemporaryStorage automatically creates the directory if it doesn't exist yet
[Form] Changed FormBuilder::build() to FormBuilder::create(). You hvae to pass the resulting builder to FormBuilder::add() manually now
[Form] Added FieldTypeValidatorExtension and fixed FQCN of DelegatingValidator
2011-04-24 21:53:24 +02:00
Pascal Borreli
06b3c386d9
[Form] Fixed typos
2011-04-24 14:05:16 +00:00
Fabien Potencier
08bf2af455
fixed email
2011-04-24 13:59:46 +02:00
Bernhard Schussek
d58c610833
[Form] Improved the way passed data is handled in FormFactory
2011-04-24 13:32:29 +02:00
Fabien Potencier
2b8c7f84b5
[Form] added a way to register a Form extension after creation of the FormFactory
2011-04-23 09:28:29 +02:00
Bernhard Schussek
1ce2db87e2
[Form] Added FormTypeExtensionInterface
...
With implementations of this interface, existing types can be amended.
The Csrf extension, for example, now contains a class FormTypeCsrfExtension
that adds CSRF capabilities to the "form" type.
To register new type extensions in the DIC, tag them with "form.type_extension"
and the name of the extended type as alias.
2011-04-22 19:24:38 +02:00