Download the PHP package aschaeffer/sonata-editable-list-bundle without Composer
On this page you can find all versions of the php package aschaeffer/sonata-editable-list-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aschaeffer/sonata-editable-list-bundle
More information about aschaeffer/sonata-editable-list-bundle
Files in aschaeffer/sonata-editable-list-bundle
Package sonata-editable-list-bundle
Short Description Symfony SonataClassificationBundle
License MIT
Homepage https://github.com/arnaudschaeffer/SonataEditableListBundle
Informations about the package sonata-editable-list-bundle
Sonata Editable List Bundle
Sonata Editalbe List Bundle allow you to define editable list for entities.
Installation
Install the package with:
If you're not using Symfony Flex, you'll also need to enable the Aschaeffer\SonataEditableListBundle\AschaefferSonataEditableListBundle in your AppKernel.php file.
You can then add SonataEditableList and SonataEditableItem in App\Entity. The class can be found in the recipe branch of this repository.
Also, add the following configuration:
Usage
In your entity, add Listable annotation to use editable list :
Create user_gender and user_interests list in Sonata admin or use the sonata:editable_list:create command to initialze lists and define all the possible values.
In your Sonata admin class, listable property will property in ShowMapper and ListMapper. When using these properties in FormMapper and DatagridMapper, you will need to add the following code :
All versions of sonata-editable-list-bundle with dependencies
symfony/config Version ^4.3 || ^5.0 || ^6.0
symfony/console Version ^4.3 || ^5.0 || ^6.0
symfony/dependency-injection Version ^4.3 || ^5.0 || ^6.0
symfony/form Version ^4.3 || ^5.0 || ^6.0
symfony/http-foundation Version ^4.3 || ^5.0 || ^6.0
symfony/http-kernel Version ^4.3 || ^5.0 || ^6.0
symfony/options-resolver Version ^4.3 || ^5.0 || ^6.0