Fabien Potencier
a9160eee70
[Validator] made fields the default option for Collection constraint
2011-03-31 15:36:04 +02:00
Fabien Potencier
f92055ce42
[Validator] renamed methods that do not follow CS
...
requiredOptions -> getRequiredOptions
targets -> getTargets
defaultOption -> getDefaultOption
2011-03-30 23:18:20 +02:00
Fabien Potencier
525702b5c6
[Validator] renamed method to follow CS
2011-03-30 23:10:30 +02:00
Johannes M. Schmitt
7887f04dc2
removed Assert prefix from all constraints, renamed annotation namespace to assert
2011-03-26 15:26:05 +01:00
Bernhard Schussek
3e29348d21
[Validator] Added support for static callbacks to Callback constraint
2011-03-25 01:36:58 +01:00
Bernhard Schussek
9c6a6e13bf
[Validator] Renamed Execute constraint to Callback
2011-03-25 01:34:35 +01:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
Pascal Borreli
3a47fa6eed
[Tests] Fixed Typo
2011-03-01 18:58:08 +01:00
Bernhard Schussek
1a34743990
[Validator] Fixed: Collections annotated with @Valid may contain scalar values. These values are ignored by the GraphWalker
2011-02-03 13:21:37 +01:00
Bernhard Schussek
5ed4d91bb8
[Validator] Implemented Execute constraint
2011-02-03 11:00:03 +01:00
Thomas
e6dc155e89
fix validator class metadata warning
2011-02-02 11:37:41 +01:00
Jordi Boggiano
571c984625
[Validator] Skip tests that rely on Doctrine being present if its not
2011-01-30 09:18:18 +01:00
Bernhard Schussek
0c3ca26e6e
[Validator] Implemented traversing of \Traversable objects using the @Valid constraint. Can be disabled by setting the @Valid option 'traverse' to false
2011-01-28 09:19:32 +01:00
Bernhard Schussek
d327a90ff2
[Validator] Added namespace prefix support for XML and YAML loaders
2011-01-19 16:25:50 +01:00
Bernhard Schussek
2d7c47e488
[Validator] Each object is now only validated once for a given group
2011-01-19 16:25:50 +01:00
Bernhard Schussek
eed3c9a48c
[Validator] Added abstract method Constraint::targets() to define whether constraints can be put onto properties, classes or both
2011-01-19 16:25:50 +01:00
Bernhard Schussek
6ad22fd702
[Validator] Added ValidatorFactory for programmatically creating validators
2011-01-19 16:25:50 +01:00
Bernhard Schussek
fea37a3e95
[Validator] Added tests for AssertTypeValidator
2011-01-19 16:25:50 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Bernhard Schussek
39c9bf160e
[Validator] Implemented @Ip constraint
2011-01-03 22:07:15 +01:00
Bernhard Schussek
708c780213
[Validator] Renamed @Validation constraint to @Set
2011-01-03 22:06:52 +01:00
Bernhard Schussek
52ecffe51b
[Validator] Implemented Locale constraint
2011-01-02 10:41:09 +01:00
Jordi Boggiano
3d9b13f240
CS: Unified non-strict equality comparisons, put var on the right side
2010-12-21 08:51:27 +01:00
Bernhard Schussek
993257a83e
[Validator] Implemented Language constraint
2010-12-16 10:18:33 +01:00
Bernhard Schussek
fdb7f84c7d
[Locale][Form][Validator] Refactored code to new Locale component, implemented Country constraint
2010-12-16 10:18:33 +01:00
Johannes M. Schmitt
b3081c79e9
CS fixes
2010-12-13 11:10:55 +01:00
Fabien Potencier
48e30537c4
added exception when a loaded YAML resource is not an array
2010-12-12 08:39:37 +01:00
Bernhard Schussek
1b2ca259f1
[Validator] Fixed string-based constraint validators to accept empty values
2010-12-10 14:28:11 +01:00
Gustavo Falco
af291bb0f1
[Validator] Fixed UrlValidator to accept empty strings ( closes #9297 )
2010-12-10 14:28:07 +01:00
pablodip
984a857a96
[Validator] fixed the static method loader to not repeat the loading when the static method is in the parent classes
2010-12-10 14:27:49 +01:00
Kris Wallsmith
3e02eafc70
Fixed visibility of PHPUnit setUp and tearDown methods.
2010-12-06 15:52:23 +01:00
Bernhard Schussek
68cebd667a
[Validator] Group sequences must now always contain the group "<ClassName>" and never the group "Default" since that group is redefined by the group sequence
2010-11-19 07:11:26 +01:00
Bernhard Schussek
a71cad480a
[Validator] Added @validation:GroupSequence to annotation driver
2010-11-19 07:11:23 +01:00
Jordi Boggiano
b2bd7ce57d
[Validator] Skipping AnnotationLoader tests if doctrine-common is not present
2010-11-18 06:59:09 +01:00
Bernhard Schussek
940ce9aedf
[Validator] Group "Default" is now propagated to validated references when group sequences are validated
...
This conforms to JSR303 (see version 1.0 final, page 39).
2010-11-17 08:02:10 +01:00
Bernhard Schussek
6a148465da
[Validator][Form] Removed support for match-all group "*"
...
The constraint "Valid" does not accept any options or groups anymore. As per
JSR303 1.0 final, section 3.5.1 "Object graph validation" (page 39),
properties annotated with valid should be cascaded independent of the current
group (i.e. always). Thus the group "*" is not necessary anymore and was
removed from the "Valid" constraint in the Form validation.xml.
2010-11-17 08:02:06 +01:00
jeff
69cd21d8be
[Validator] Fixed annotation loader to not add parent constraints twice
2010-11-12 17:56:09 +01:00
Fabien Potencier
5b6d92df3c
fixed unit tests
2010-10-18 17:01:57 +02:00
Kris Wallsmith
5d4c80f27b
[Validator] removed DependencyInjection integration
2010-10-16 08:34:36 +02:00
Fabien Potencier
0fc8906feb
[Validator] forced all validation annotations to be in the validation namespace to avoid collisions, removed the need for the wrapping @Validation annotation
...
Before:
/**
* @Validation({@DateTime()})
*/
After:
/**
* @validation:DateTime()
*/
The @validation:Validation() construct is not needed anymore (it is still supported
as this is useful when you have several annotations with the same class).
So, the above is equivalent to:
/**
* @validation:Validation({@validation:DateTime()})
*/
2010-10-02 15:07:00 +02:00
Fabien Potencier
3b1e83380b
[Validator] removed the convention that error parameters are delimited with %%
2010-09-29 07:59:45 +02:00
Fabien Potencier
866c306dc8
removed the message interpolator system in the Validator component (i18n management should be done globally, not in a specific component)
2010-09-24 16:41:28 +02:00
Fabien Potencier
a141c98917
[HttpFoundation] moved File Component into the HttpFoundation one
2010-09-09 17:01:48 +02:00
Fabien Potencier
bf82cf42dd
renamed Symfony\Components to Symfony\Component
2010-08-20 23:09:55 +02:00