Christian Flothmann
9513a8aa52
property constraints can be added in child classes
2017-02-13 18:37:45 +01:00
Christian Flothmann
9a60057f42
respect groups when merging constraints
2017-01-10 10:32:28 +01:00
Christian Flothmann
8b281fe401
override property constraints in child class
2016-12-25 18:58:48 +01:00
Sandro Hopf
54a7eff868
[Validator][GroupSequence] fixed GroupSequence validation ignores PropertyMetadata of parent classes
2016-08-25 18:04:22 -07:00
Nicolas Grekas
c0ff72802c
Merge branch '2.3' into 2.7
...
* 2.3:
typofix - https://github.com/vlajos/misspell_fixer
[Yaml] Nested merge keys
Add support for variadic arguments in the GetSetNormalizer
Conflicts:
src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php
src/Symfony/Component/Serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php
src/Symfony/Component/Validator/Tests/Mapping/ClassMetadataTest.php
src/Symfony/Component/Yaml/Tests/Fixtures/sfMergeKey.yml
2015-08-11 09:58:34 +02:00
Veres Lajos
0692ca97cd
typofix - https://github.com/vlajos/misspell_fixer
2015-08-11 09:25:28 +02:00
Nicolas Grekas
2856caed2f
[2.6] cleanup deprecated uses
2015-01-05 09:56:52 +01:00
Christophe Coevoet
8cc3f6aad4
Fix phpdoc and coding standards
...
This removes the unused use statements which were not catched by
PHP-CS-Fixer because of string occurences. It also fixes some invalid
phpdoc (scalar is not recognized as a valid type for instance).
2014-12-29 23:41:34 +01:00
Fabien Potencier
72c169e8a1
Merge branch '2.5' into 2.6
...
* 2.5:
[2.3] CS And DocBlock Fixes
[2.3] CS Fixes
[FrameworkBundle] Fixed Translation loader and update translation command.
[Console] remove « use » statement for PHP built-in exception classes.
[SecurityBundle] adds unit tests suite for SecurityDataCollector class.
Conflicts:
src/Symfony/Bundle/SecurityBundle/DataCollector/SecurityDataCollector.php
src/Symfony/Bundle/SecurityBundle/Tests/DataCollector/SecurityDataCollectorTest.php
src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php
src/Symfony/Component/Form/Form.php
src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php
src/Symfony/Component/OptionsResolver/Options.php
src/Symfony/Component/OptionsResolver/OptionsResolver.php
src/Symfony/Component/Process/ProcessPipes.php
src/Symfony/Component/Stopwatch/Stopwatch.php
src/Symfony/Component/Translation/Loader/XliffFileLoader.php
src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php
2014-12-22 17:44:09 +01:00
Fabien Potencier
f26c062c00
Merge branch '2.3' into 2.5
...
* 2.3:
[2.3] CS And DocBlock Fixes
[2.3] CS Fixes
Conflicts:
src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php
src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php
src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php
src/Symfony/Bundle/FrameworkBundle/EventListener/TestSessionListener.php
src/Symfony/Component/Config/Definition/ReferenceDumper.php
src/Symfony/Component/Console/Application.php
src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
src/Symfony/Component/Filesystem/Tests/FilesystemTest.php
src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php
src/Symfony/Component/Form/FormError.php
src/Symfony/Component/HttpFoundation/Request.php
src/Symfony/Component/HttpFoundation/Response.php
src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php
src/Symfony/Component/Process/ProcessUtils.php
src/Symfony/Component/PropertyAccess/PropertyAccessor.php
src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php
src/Symfony/Component/Serializer/Encoder/XmlEncoder.php
src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php
src/Symfony/Component/Validator/Constraints/GroupSequence.php
src/Symfony/Component/Validator/Mapping/ClassMetadata.php
src/Symfony/Component/Validator/Mapping/ClassMetadataFactory.php
src/Symfony/Component/Validator/Mapping/MemberMetadata.php
src/Symfony/Component/Validator/Tests/Fixtures/StubGlobalExecutionContext.php
2014-12-22 17:29:52 +01:00
Graham Campbell
83c15db887
[2.3] CS And DocBlock Fixes
2014-12-22 16:58:09 +01:00
Bernhard Schussek
05c720734b
feature #11917 [Validator] Add ClassMetadata plural methods for convinience (jakzal)
...
This PR was squashed before being merged into the 2.6-dev branch (closes #11917 ).
Discussion
----------
[Validator] Add ClassMetadata plural methods for convinience
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #4143
| License | MIT
| Doc PR | -
I realised there's no specific place to document this methods, as the code examples always include all the formats. I think it's enough if IDE autocompletes these methods.
Commits
-------
0fd6769
[Validator] Add ClassMetadata plural methods for convinience
2014-09-15 16:53:41 +02:00
Jakub Zalas
0fd6769d2a
[Validator] Add ClassMetadata plural methods for convinience
2014-09-15 16:53:34 +02:00
Tobias Schultze
04eb61b80e
[Validator] deprecate member metadata accessors in favor of existing property metadata accessors
...
add changelog for deprecations
fix test
2014-08-19 17:31:17 +02:00
Bernhard Schussek
59cd05f5b7
Merge branch '2.4' into 2.5
...
* 2.4:
[Validators] Fixed failing tests requiring ICU 52.1 which are skipped otherwise
return empty metadata collection if none do exist
2014-08-19 10:56:37 +02:00
Christian Flothmann
f5bc18d648
return empty metadata collection if none do exist
...
The PropertyMetadataContainerInterface defines that the method
getPropertyMetadata() has to return an empty collection if no
metadata have been configured for the given property. Though, its
implementation in the ClassMetadata class didn't check for
existence of such metadata. This behavior led to unexpected PHP
notices when validating a property or a property value of a property
without any configured constraints (only affects the new 2.5 API).
Additionally, the getMemberMetadatas() didn't check for existing
array keys as well which has also been fixed.
2014-08-08 11:23:54 +02:00
Bernhard Schussek
94ef21e495
[Validator] Optimized use statements
2014-03-30 18:30:09 +02:00
Bernhard Schussek
184c8e586f
Fixed @expectedException definitions to reference absolute exception paths
2013-01-05 18:52:40 +01:00
Fabien Potencier
fea6b79acd
moved component and bridge unit tests to the src/ directory
...
This is the first step to make each Symfony Component and Bridge self-contained.
2012-03-29 08:37:22 +02:00