Hello,
The SonataAdminBundle has been refactored, and the changes will break your
projects.
The changes
-----------
* remove property definitions
* add TypeGuesser for list/show/filter
* refactor [Form|List|Filter|Show]Mapper to match the Symfony2 Form API
* add theme form definition from within the Admin class - default :
SonataAdminBundle:Form:admin_fields.html.twig
* add new twig bloc type names to allows custom widget layouts per admin
* add show
Notes
-----
- If you use property definitions, you need to update your code [1].
- By default the sonata custom type are not used anymore, you need to
explicitly declare them in your form definition.
ex :
$formMapper
->add('galleryHasMedias', 'sonata_type_collection', array(), array(
'edit' => 'inline',
'inline' => 'table',
'sortable' => 'position'
));
$formMapper
->add('media', 'sonata_type_model', array(), array('edit' => 'list'));
Why these changes ?
-------------------
- The SonataAdminBundle was built around the old Form API, and it was time to
update the core.
- Removing property definitions allows to have only one single way of adding
properties => less bugs, better learning curve
Please report bugs here :
https://github.com/sonata-project/SonataAdminBundle/issues
[1]
https://github.com/sonata-project/SonataNewsBundle/commit/6ac9c7822b2c998bb563f19f66ed3dbbd3254060
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en