Skip to content

Commit f6890c9

Browse files
leonex-cs1weaverryan
authored andcommitted
Setting the option property_path to false was deprecated - use mapped
1 parent 41fd4a7 commit f6890c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/forms.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,14 +867,14 @@ the choice is ultimately up to you.
867867

868868
In cases where you need extra fields in the form (for example: a "do you
869869
agree with these terms" checkbox) that will not be mapped to the underlying
870-
object, you need to set the property_path option to ``false``::
870+
object, you need to set the ``mapped`` option to ``false``::
871871

872872
use Symfony\Component\Form\FormBuilderInterface;
873873

874874
public function buildForm(FormBuilderInterface $builder, array $options)
875875
{
876876
$builder->add('task');
877-
$builder->add('dueDate', null, array('property_path' => false));
877+
$builder->add('dueDate', null, array('mapped' => false));
878878
}
879879

880880
Additionally, if there are any fields on the form that aren't included in

0 commit comments

Comments
 (0)