mweimerskirch / MWTagAdminBundle

MIT License
1 stars 2 forks source link

tags are not saved in sonata admin #3

Open danielec7 opened 11 years ago

danielec7 commented 11 years ago

Hello,

I'm usign this plugin in sonata and it works fine. But when I use it with sonata_type_collection the tags are not saved. Example:

[...]
$formMapper
            ->add('text')
            ->add('subentities', 'sonata_type_collection', 
                    array(
                        'by_reference' => false,
                    ), 
                    array(
                         'edit' => 'inline',
                         'inline' => 'table',
                         'sortable'  => 'position',
            ))

If I go to the main subentity edit form it works.

Do you have some tips on where to look?

danielec7 commented 11 years ago

It seems sonata doesn't execute postUpdate and postPersist actions on embedded forms. And datatransformer "transform" method doesn't get called either in sub forms.