vitiko / IphpFileStoreBundle

Symfony 2 file upload for doctrine entities
http://symfonydev.ru/iphpfilestorebundle/
51 stars 23 forks source link

when i click to button of "add new" field of photo is reset for sonata_type_collection #35

Open volkan opened 9 years ago

volkan commented 9 years ago
->with('Images')
            ->add('images', 'sonata_type_collection', array(
                'by_reference'       => false,
                'cascade_validation' => true,
            ), array(
                'edit' => 'inline',
                'inline' => 'table'
            ))
            ->end()

Clicks before Before button of add new

Clicks after After button of add new

Medusox commented 9 years ago

+1

vitiko commented 9 years ago

Unfortunately, this behavior is due to the implementation of sonata_type_collection

rifats commented 9 years ago

@volkan , are there any problems with saving new item with image? I have "This form should not contain extra fields" error. Updating existing records works, even if I load a new image to replace the old.

volkan commented 9 years ago

@rifats I have never seen this problem. By the way i do not use this plugin.