Skip to content

Commit 33ff59d

Browse files
committed
Merge branch '4.2'
* 4.2: fix filepaths for code examples
2 parents 77c8b09 + 45cb5f2 commit 33ff59d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

form/data_mappers.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Creating a Data Mapper
3333
Suppose that you want to save a set of colors to the database. For this, you're
3434
using an immutable color object::
3535

36-
// src/App/Painting/Color.php
36+
// src/Painting/Color.php
3737
namespace App\Painting;
3838

3939
final class Color
@@ -80,7 +80,7 @@ The red, green and blue form fields have to be mapped to the constructor
8080
arguments and the ``Color`` instance has to be mapped to red, green and blue
8181
form fields. Recognize a familiar pattern? It's time for a data mapper::
8282

83-
// src/App/Form/DataMapper/ColorMapper.php
83+
// src/Form/DataMapper/ColorMapper.php
8484
namespace App\Form\DataMapper;
8585

8686
use App\Painting\Color;
@@ -143,7 +143,7 @@ You're ready to use the data mapper for the ``ColorType`` form. Use the
143143
:method:`Symfony\\Component\\Form\\FormConfigBuilderInterface::setDataMapper`
144144
method to configure the data mapper::
145145

146-
// src/App/Form/Type/ColorType.php
146+
// src/Form/Type/ColorType.php
147147
namespace App\Form\Type;
148148

149149
use App\Form\DataMapper\ColorMapper;

0 commit comments

Comments
 (0)