Hi,
first of all, sorry for my delayed response!
Thanks for implementing this feature! For my purposes it would be enough, because it works by entering "{191}" in the options field, but I think for others it isn't intuitive at all.
During my tests, I noticed that Skipper doesn't include the { } by itself. However, when leaving them out, entering a value of 191 or 191,191 for composite keys result in an error while generating doctrine migrations:
12:25:53 ERROR [app] TypeError: array_shift(): Argument #1 ($array) must be of type array, string given (uncaught error) at /application/vendor/doctrine/dbal/src/Schema/Index.php line 107 while running console command `doctrine:migrations:diff` ["exception" => TypeError { …}]
Notification also broke
In Index.php line 107:
array_shift(): Argument #1 ($array) must be of type array, string given
My suggestion is to let Skipper insert the { } itself. Also, please avoid adding "" for composite keys.
This is how it is currently:
Value -> Annotation
191 -> options={"lengths":191}
191,191 -> options={"lengths":"191,191"}
{191} -> options={"lengths":{191}}
{191,191} -> options={"lengths":{191,191}}
The first two lead to an error while generating migrations. It would be great if Skipper just surrounds the entered value with { }, so that it is like this:
191 -> options={"lengths":{191}}
191,191 -> options={"lengths":{191,191}}