Bernhard Schussek
b7330456b6
[Form] Fixed option support in Form component
2012-04-11 16:37:42 +02:00
Bernhard Schussek
e0ce6b4c11
[Form] Fixed required value guessed by ValidatorTypeGuesser
2012-04-07 16:26:16 +02:00
nervo
09054f7c9c
[Validator] Fix switch breaking in max/min length for constraint guesser, when a "Symfony\Component\Validator\Constraints\Type" constraint type is not in numeric types array
2012-03-23 15:06:13 +01:00
Fabien Potencier
def4323dc8
fixed CS
2012-03-23 12:47:42 +01: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
a30a679135
[Validator] Made ExecutionContext immutable and introduced new class GlobalExecutionContext
...
A new ExecutionContext is now created everytime that GraphWalker::walkConstraint() is
launched. Because of this, a validator B launched from within a validator A can't break
A anymore by changing the context.
Because we have a new ExecutionContext for every constraint validation, there is no point
in modifying its state anymore. Because of this it is now immutable.
2012-01-31 21:35:48 +01:00
Bernhard Schussek
5aa5987aa4
[Form] Fixed: form children are always validated in group "Default"
2012-01-30 13:42:13 +01:00
Bernhard Schussek
8dc78bd0c9
[Form] Fixed YODA issues
2012-01-28 13:37:24 +01:00
Bernhard Schussek
0c70a410e5
[Form] Made validation of form children configurable. Set the option "cascade_validation" to true
if you need it.
2012-01-16 20:49:43 +01:00
Fabien Potencier
b9a14f0411
merged 2.0
2012-01-11 15:47:52 +01:00
Kris Wallsmith
aa58330047
[Form] fixed flawed condition
2012-01-10 09:16:51 -08:00
Fabien Potencier
142cef21bb
merged 2.0
2011-12-13 16:12:53 +01:00
Fabien Potencier
e3421a0b1d
[DoctrineBridge] fixed some CS
2011-12-13 10:22:12 +01:00
Joseph Rouff
fb0379d3b7
Fix some CheckStyle violations on Components.
...
On casts, Control signature etc.
2011-11-11 20:46:32 +01:00
Dariusz Górecki
e1822e7807
Enable dynamic set of validation groups by a callback or Closure
...
This will enable developer, to set a callback or a closure as a `'validation_groups'` form option,
this is usefull when we have to determine validation groups based on a client submitted data.
2011-11-07 22:48:01 +01:00
Jordan Alliot
ee0fe7a2b5
Added guessers for Size and SizeLength constraints
2011-09-30 22:31:52 +02:00
Fabien Potencier
2b1bb2c357
[Form] added missing DelegatingValidator registration in the Form Extension class (used when using the Form component outside a Symfony2 project where the validation.xml is used instead)
2011-08-22 22:35:46 +02:00
Grégoire Passault
80d1718a62
[Fix] Email() constraints now guess as 'email' field type
2011-08-16 14:27:16 +02:00
Fabien Potencier
af67e65cbd
[Form] fixed validation when using the 'validation_constraint' option
2011-07-16 00:45:53 +02:00
Fabien Potencier
47da6cf39e
[Form] removed guesser for Choice constraints
...
The guesser has been removed as the constraints only knows
about the valid keys. But to be able to create the Type automatically,
we also need the values.
2011-07-06 14:36:20 +02:00
Fabien Potencier
a724774fc0
[Form] fixed guesser when a choice constraint is defined via a callback
2011-06-29 19:55:46 +02:00
Fabien Potencier
f57e1d3e10
fixed CS
2011-06-23 14:07:53 +02:00
Fabien Potencier
a232c148eb
fixed CS
2011-06-14 12:54:32 +02:00
Fabien Potencier
03a05661f9
[Form] fixed more cases where the delegating validator did not match the validator paths
2011-06-10 15:35:49 +02:00
Fabien Potencier
1daca76197
[Form] unified the way form and data path are created
2011-06-10 15:35:35 +02:00
Fabien Potencier
7de4d28a05
Merge remote branch 'yethee/delegating_validator'
...
* yethee/delegating_validator:
[Form] Fixed path mapping for DelegatingValidator
2011-06-10 13:54:44 +02:00
Fabien Potencier
1aabc5da64
fixed CS
2011-06-08 12:16:48 +02:00
jdhoek
7e4419368e
Add missing {} around @inheritDoc to fix this class in SF beta2.
2011-05-24 00:38:15 -07:00
Michel Weimerskirch
fd92105fa0
Fix merge error (function "guess" was in there twice)
2011-05-19 05:45:29 -07: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
Deni
e75edf205d
[Form] Fixed path mapping for DelegatingValidator
2011-05-14 13:38:34 +04:00
Victor Berchet
2db53b5e28
[Form] Order method according to their visibility to respect the CS
2011-05-11 11:00:32 +02: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
Victor Berchet
f83e92bf44
Make casting scalar to array consistent
2011-04-26 12:16:35 +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
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
Pascal Borreli
8c0beea677
[Phpdoc] Cleaning/fixing
2011-04-23 15:18:47 +00:00
Fabien Potencier
b69c5956d3
[Form] added missing use statement
2011-04-23 09:27:47 +02:00
Bernhard Schussek
6f1bc356a8
[Form] Refactored code from CoreExtension to new ValidatorExtension
...
CoreExtension is now independent of the Symfony2 validator.
2011-04-22 19:38:21 +02:00