Bernhard Schussek
9153f0e569
[Validator] Deprecated ConstraintValidator methods setMessage(), getMessageTemplate() and getMessageParameters()
...
Had to refactor the validation tests at the same time and fixed various small bugs while doing so.
2012-02-01 14:03:13 +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
fe85bbdb06
[Validator] Simplified ExecutionContext::addViolation(), added ExecutionContext::addViolationAt()
2012-01-31 18:42:14 +01:00
Bernhard Schussek
f904a9ed53
[Validator] Fixed: GraphWalker does not add constraint violation if error message is empty
2012-01-30 20:56:10 +01:00
meze
03ed770d35
[Validator] The current class isn't set in execution context when doing validateProperty()
2011-12-07 16:20:32 +01:00
Fabien Potencier
5878490b16
removed unused use statements
2011-11-24 07:16:14 +01:00
Fabien Potencier
851eb73778
removed unused use statements
2011-10-29 11:56:30 +02:00
Fabien Potencier
c04512086e
[Validator] fixed error message property path when a collection error occurs
2011-07-16 00:29:54 +02:00
Fabien Potencier
082473659e
fixed validation of Doctrine proxy objects
2011-07-06 13:03:38 +02:00
Fabien Potencier
1aabc5da64
fixed CS
2011-06-08 12:16:48 +02:00
Pascal Borreli
8c0beea677
[Phpdoc] Cleaning/fixing
2011-04-23 15:18:47 +00:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +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
55a97ec78e
[Validator] Made GraphWalker::validateReference() method public
2011-02-03 11:00:03 +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
2d7c47e488
[Validator] Each object is now only validated once for a given group
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
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Ryan Weaver
11085fd6a6
[Validator] Adding a significant amount of PHPDoc to the Validator component.
2011-01-16 07:40:15 +01:00
Jordi Boggiano
094d428e68
CS: Unified strict equality comparisons, put var on the right side
2010-12-21 08:51:21 +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
Fabien Potencier
3a4d9cb185
[Validation] fixed license
2010-10-02 12:42:35 +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
bf82cf42dd
renamed Symfony\Components to Symfony\Component
2010-08-20 23:09:55 +02:00