These are chat archives for symfony2admingenerator/GeneratorBundle

28th
Oct 2015
i'm having a problem with this code, because the deletion is broken because of that
if i try to delete first item of collection, the last one gets deleted instead of the first one
Bob van de Vijver
@bobvandevijver
Oct 28 2015 13:04
@matejvelikonja Which Symfony version are you using?
I remember something about a change in a select that might have to do with this (change is 2.7 .something and above)
Matej Velikonja
@matejvelikonja
Oct 28 2015 13:05
2.7 yes
actaully 2.7.6
@bobvandevijver
Bob van de Vijver
@bobvandevijver
Oct 28 2015 13:07
Okay, so you are probably affected, let me find the correct doc about this
Matej Velikonja
@matejvelikonja
Oct 28 2015 13:08
please do
Bob van de Vijver
@bobvandevijver
Oct 28 2015 13:08
Can you try the choices_as_values from https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.7.md?
Matej Velikonja
@matejvelikonja
Oct 28 2015 13:10
will check, thx
but this effects choices, and not collection type
Bob van de Vijver
@bobvandevijver
Oct 28 2015 13:12
Hmmm, you're right
Does your collection also contain the ids as hidden fields, and if not, could you try that?
(I've never used the reorder thing by the way)
Matej Velikonja
@matejvelikonja
Oct 28 2015 14:54
i don't use reorder thing also, but it's there in any case