Symfony 4 / Sonata: Manage the Order with Drag'n Drop
Written by
on 20/02/2020
Tags:
sonata, drag'n drop, symfony
You need to install pixassociates/sortable-behavior-bundle and stof/doctrine-extensions-bundle
composer require stof/doctrine-extensions-bundle
composer require pixassociates/sortable-behavior-bundle
Add the configuration in pix_sortable.yamlBy adding the entity and the field in position_field (here wconf, and the position field)
pix_sortable_behavior:
db_driver: orm # mongodb default value : orm
position_field:
default: position #default value : position
entities:
...