- [BC BREAK] Added KnpMenuBundle v2.x compatibility,
buildSideMenu
must now use theAdmin::generateMenuUrl
method to generate the route arguments for the KnpMenu options.
- [BC BREAK] Added the
getTranslationLabel
method to AdminInterface
- [BC BREAK] Move some classes to SonataCoreBundle, you need to add a new dependency
- [BC BREAK] added
getBatchActions
to the AdminInterface If you do not extend the Admin class, you need to add this method to your admin.
- [BC BREAK] added
setCurrentChild
,getCurrentChild
to the AdminInterface If you do not extend the Admin class, you need to add these methods to your admin.
- [BC BREAK] added
getExportFormats
,getDataSourceIterator
to the AdminInterface If you do not extend the Admin class, you need to add these methods to your admin.
- [BC BREAK] added
supportsPreviewMode
to the AdminInterface If you do not extend the Admin class, you need to add this method to your admin.
- [BC BREAK] added
getFilterParameters
to the AdminInterface If you do not extend the Admin class, you need to add this method to your admin.
-
[BC BREAK] added
hasParentFieldDescription
,getPersistentParameters
,getParentFieldDescription
,getUniqid
,getBaseCodeRoute
,getIdParameter
to the AdminInterface If you do not extend the Admin class, you need to add these methods to your admin. -
added support for select2 (jQuery based replacement for select boxes)
- change list's action buttons to use
btn-small
from twitter bootstrap
- [BC BREAK] added
getTranslator
,getForm
,getBreadcrumbs
to the AdminInterface If you do not extend the Admin class, you need to add these methods to your admin.
-
[BC BREAK] added
getMaxPerPage
,setMaxPerPage
,setPage
,setQuery
,getResults
to the PagerInterface If you do not extend the Pager class, you need to add these methods to your pager. -
[BC BREAK] added
isActive
to the FilterInterface If you do not extend the Filter class, you need to add this method to your filter.
-
[BC BREAK] added
hasShowFieldDescription
,hasListFieldDescription
,removeListFieldDescription
,removeFilterFieldDescription
,hasFilterFieldDescription
to the AdminInterface If you do not extend the Admin class, you need to add these methods to your admin. -
[BC BREAK] added
reorderFilters
to the DatagridInterface If you do not extend the Datagrid class, you need to add this method to your Datagrid.
- [BC BREAK] added
getListBuilder
,getDatagridBuilder
,setBaseControllerName
,getBaseControllerName
,getFormFieldDescriptions
,getRoutes
,getFilterFieldDescriptions
,getListFieldDescriptions
,isChild
to the AdminInterface If you do not extend the Admin class, you need to add these methods to your admin.
- [BC BREAK] added
getLabel
,removeShowFieldDescription
,getShowGroups
,setShowGroups
,reorderShowGroup
to the AdminInterface If you do not extend the Admin class, you need to add these methods to your admin.
-
[BC BREAK] added alterNewInstance to AdminExtensionInterface If you do not extend the AdminExtension, you need to add an empty method to your extension classes:
public function alterNewInstance(AdminInterface $admin, $object) {}
-
[BC BREAK] added hasRequest to the AdminInterface If you do not extend the Admin class, you need to add a hasRequest method to your admin like this (depending on how you handle the request you return in getRequest:
public function hasRequest() { return null !== $this->request; }
- [BC BREAK] changed route name/pattern guesser to be more acurate and
persistance layer agnostic, this might affect you if you use a namespace scheme
similar to the examples below:
- Before - admin for
Symfony\Cmf\Bundle\FoobarBundle\Document\Bar
generated base route nameadmin_bundle_foobar_bar
and base pattern/cmf/bundle/bar
- After - admin for
Symfony\Cmf\Bundle\FoobarBundle\Document\Bar
generatesadmin_cmf_foobar_bar
and/cmf/foobar/bar
- Before - admin for
- Remove qTip
-
[BC BREAK] change the configureSideMenu signature to use the AdminInterface
- protected function configureSideMenu(MenuItemInterface $menu, $action, Admin $childAdmin = null)
- protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null)
- [BC BREAK] remove
getListTemplate
,getEditTemplate
,getShowTemplate
=> just usegetTemplate('edit')
- add a
delete
template configuration entry
- [BC BREAK] Fix bug introduces by 09334d81, now an admin must have the role
ROLE_SONATA_ADMIN
to see the top bar navigation
- Update batch action confirmation message (breaks some translations)
- [BC BREAK] add ProxyQueryInterface hint into the FilterInterface class
- [BC BREAK] Extension : refactor the AdminExtensionInterface to use the proper AdminInterface, add a new configureQuery method
- Add export to xls format (html file)
-
[BC BREAK] Introduce Block Into the Admin Bundle
- The AdminBundle has now a dependency to BlockBundle : http://github.com/sonata-project/SonataBlockBundle
- The dashboard list is now a block, so it can be removed from the sonata_admin configuration.
- More blocks can be created please follow the instruction here : http://sonata-project.org/bundles/block/master/doc/reference/your_first_block.html
-
[BC BREAK] New configuration format for the dashboard section.
- Add export feature to csv, xml, json The AdminBundle has now a new dependency to exporter : https://github.com/sonata-project/exporter
- Add a delete option on widget with edit = list
- Refactoring the Menu/Breadcrumb management due to a change in the KnpLab Menu lib
- 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 block type names to allows custom widget layouts per admin
- add show
- migrate to the new form framework
- add sortable option
- add prototype for nested admin
- refactor code to use builder (FormBuilder, DatagradBuilder, FilterBuilder)
- starting to use the form.field_factory service
- update code to integrate the last symfony changes
- add list mode
- add 'add_empty' option to association widget (ie: select)
- add country field type
- refactor the form creation
- respect symfony conventions
- add new base edit template (standard and inline)
- admin instances are not singletons anymore
- add inline edition
- respect symfony conventions
- add a FieldDescription
- register routes by using the getUrls from each Admin class
- build admin information "on demand"
- create an EntityAdmin and add new abstract method into the Admin class
- add inline edition for one-to-one association