merged branch michaelperrin/feature/deprecation-messages (PR #6973)
This PR was merged into the 2.2 branch.
Commits
-------
badb2b9
Add "'property_path' => false" deprecation message for forms
Discussion
----------
Add "'property_path' => false" deprecation message for forms
This commit is contained in:
commit
6e9c235d62
@ -56,6 +56,10 @@ class FormType extends AbstractType
|
||||
->setDataMapper($options['compound'] ? new PropertyPathMapper($this->propertyAccessor) : null)
|
||||
;
|
||||
|
||||
if (false === $options['property_path']) {
|
||||
trigger_error('\'property_path\' => false is deprecated since version 2.1 and will be removed in 2.3. Use \'mapped\' => false instead.', E_USER_DEPRECATED);
|
||||
}
|
||||
|
||||
if ($options['trim']) {
|
||||
$builder->addEventSubscriber(new TrimListener());
|
||||
}
|
||||
|
Reference in New Issue
Block a user