I have an entity with Sortable/position attribute, when I persist multiple entity with specific position with Bulk I have a strange behavior :
I have a list of 5 entities already persist. I try to persist new set of entity with specific position :
POST :
[
{
"position":2
},
{
"position":3
}
]
Expected :
entity 0
entity 1
new entity 2 <- position of new entity persist
new entity 3 <- position of new entity persist
entity 4
entity 5
entity 6
What I have :
entity 0
entity 1
new entity 2 <- position of new entity persist
new entity 3 <- position of new entity persist
entity 3 <- it's the same position of new entity persist
entity 4
entity 5
I have the same behavior when try to PATCH with bulk. Is this a use case not covered by the library or is it an issue ?
gedmo version : ^3.9.0
symfony version : 6.2.*
stof doctrine bundle version : ^1.7