This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component
Fabien Potencier c3ae854634 merged branch SamsonIT/error_explaining_lack_of_adder_remover (PR #4777)
Commits
-------

1fa22d9 [Form] Output a more usable error when PropertyPath has tried to find adders and getters, but failed to find them

Discussion
----------

[Form] Output a more usable error when PropertyPath has tried to find ad...

...ders and getters, but failed to find them

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -

I've refactored the writeProperty method of propertypath in order to supply a better error message when writing has failed.

The writeProperty method itself now finds singulars (if a singular was not passed) for the private findAdderAndRemover method which allowed for some duplicate code to be removed and since the writeProperty now holds this data, it can provide a more verbose exception message.

---------------------------------------------------------------------------

by bschussek at 2012-07-09T13:54:35Z

Apart from the typo this PR looks good.

---------------------------------------------------------------------------

by Burgov at 2012-07-09T14:01:04Z

fixed&squashed
2012-07-09 16:11:12 +02:00
..
BrowserKit fixed CS 2012-07-09 14:54:20 +02:00
ClassLoader fixed CS 2012-07-09 14:54:20 +02:00
Config fixed CS 2012-07-09 14:54:20 +02:00
Console fixed CS 2012-07-09 14:54:20 +02:00
CssSelector fixed CS 2012-07-09 14:54:20 +02:00
DependencyInjection fixed CS 2012-07-09 14:54:20 +02:00
DomCrawler fixed CS 2012-07-09 14:54:20 +02:00
EventDispatcher fixed CS 2012-07-09 14:54:20 +02:00
Filesystem [FileSystem] explains possible failure of symlink creation in windows 2012-06-19 09:53:15 +02:00
Finder fixed CS 2012-07-09 14:54:20 +02:00
Form merged branch SamsonIT/error_explaining_lack_of_adder_remover (PR #4777) 2012-07-09 16:11:12 +02:00
HttpFoundation fixed CS 2012-07-09 14:54:20 +02:00
HttpKernel fixed CS 2012-07-09 14:54:20 +02:00
Locale fixed CS 2012-07-09 14:54:20 +02:00
OptionsResolver fixed CS 2012-07-09 14:54:20 +02:00
Process fixed CS 2012-07-09 14:54:20 +02:00
Routing fixed CS 2012-07-09 14:54:20 +02:00
Security merged branch asm89/refactor-authentication-success-handling (PR #4599) 2012-07-09 15:29:00 +02:00
Serializer fixed CS 2012-07-09 14:54:20 +02:00
Templating fixed CS 2012-07-09 14:54:20 +02:00
Translation fixed CS 2012-07-09 14:54:20 +02:00
Validator fixed CS 2012-07-09 14:54:20 +02:00
Yaml fixed CS 2012-07-09 14:54:20 +02:00