File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ public function __construct(ObjectManager $manager)
44
44
public function buildForm (FormBuilderInterface $ builder , array $ options )
45
45
{
46
46
$ builder
47
- // We need to transform the tags collection into a comma separated string format
48
- // so we are reusing an existing one to simplify the code, but you could build
49
- // only one to do all transformation (i.e. Collection <-> string).
50
- // Transformation flow: Collection <-> array <-> string
47
+ // The Tag collection must be transformed into a comma separated string.
48
+ // We could create a custom transformer to do Collection <-> string in one step,
49
+ // but here we're doing the transformation in two steps ( Collection <-> array <-> string)
50
+ // and reuse the existing CollectionToArrayTransformer.
51
51
->addModelTransformer (new CollectionToArrayTransformer (), true )
52
52
->addModelTransformer (new TagArrayToStringTransformer ($ this ->manager ), true )
53
53
;
You can’t perform that action at this time.
0 commit comments