I am using symfony 1.4, doctrine and the csDoctrineActAsSortablePlugin for sorting. But I only need it in subform, so that the uniqueness of the position is disturbing. Is there by any chance a posibility to make it not unique?
I am already thinking of doing it manually but if I can avoid to invent the wheel a second time, I am more than thankful.
Cheers!
Just by looking at the source, I think it’s possible to disable the
uniqueoption.In your
schema.yml:You could also use the
uniqueByoption to set the fieldname which references the parent. It will then create an unique index by bothpositionand the field. Something like this: