Download the PHP package ibrows/sonata-admin-annotation-bundle without Composer
On this page you can find all versions of the php package ibrows/sonata-admin-annotation-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ibrows/sonata-admin-annotation-bundle
More information about ibrows/sonata-admin-annotation-bundle
Files in ibrows/sonata-admin-annotation-bundle
Download ibrows/sonata-admin-annotation-bundle
More information about ibrows/sonata-admin-annotation-bundle
Files in ibrows/sonata-admin-annotation-bundle
Vendor ibrows
Package sonata-admin-annotation-bundle
Short Description Manage Sonata Form, Data, List and ShowMapper over annotations
License MIT
Package sonata-admin-annotation-bundle
Short Description Manage Sonata Form, Data, List and ShowMapper over annotations
License MIT
Please rate this library. Is it a good library?
Informations about the package sonata-admin-annotation-bundle
IbrowsSonataAdminAnnotationBundle
Manage Sonata Form, Data, List and ShowMapper over annotations
How to install
Add Bundle to your composer.json
Install the bundle from console with composer.phar
Enable the bundle in AppKernel.php - Dont forget to give AppKernel to the Bundle and register the Bundle BEFORE SonataAdminBundle
Configuration (Only needed if @AutoService is used)
The Annotations
- Ibrows\Bundle\SonataAdminAnnotationBundle\Annotation\Order on classes for global orders like "show me all properties"
- Ibrows\Bundle\SonataAdminAnnotationBundle\Annotation on properties for specific configurations and excludes if orders are used
If any FormMapperExclude Annotation is found on a property the reader assumes that there es an Order/FormMapperAll on the class (same goes for the other annotations - List/Form/Datagrid)
Have a look on the Annotations to see what options they accept
Example
Using in the Admin (maybe in an AbstractAdmin.php)
With the AbstractSonataAdminAnnotationAdmin
With Traits (PHP >=5.4)
Own implementation
Known issues
Version 2.2.*
- When using the @AutoService Annotation you have to clear the cache everytime you make changes on this Annotation (remove/add/edit). Reason is that the appDevDebugContainer is fully cached and the CompilerPass cannot register the new changes.
Version 1.1.*
- Using oneToMany/manyToOne relations produces an "entity not managed" doctrine error. Reason is that FormMapper-Annotation per default sets by_reference to false, using @FormMapper(options={"by_reference"=true}) will fix that.
New features
Version 2.4
- New "tab" and "tabOptions" in FormMapper and ShowMapper Annotation for grouping -> @FormMapper(tab="Main")
Version 2.2
- Allow to register SonataAdminServices over Annotations with @AutoService @see Known issues for caching problems
Version 1.2
- Allow reorder of FormMapper/ShowMapper and ListMapper with @Order/FormReorder, @Order/ShowReorder, @Order/ListReorder or @Order/ShowAndFormReorder annotations
Version 1.1
- New "with" and "withOptions" in FormMapper and ShowMapper Annotation for grouping -> @FormMapper(with="Main")
- Allow configuration of static callback methods in entity with @FormCallback on Method (see @FormCallback example)
All versions of sonata-admin-annotation-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
ibrows/annotation-reader Version ~1.0
sonata-project/admin-bundle Version ~2.3|~3.0
symfony/framework-bundle Version >=2.0|~3.0
ibrows/annotation-reader Version ~1.0
sonata-project/admin-bundle Version ~2.3|~3.0
symfony/framework-bundle Version >=2.0|~3.0
The package ibrows/sonata-admin-annotation-bundle contains the following files
Loading the files please wait ....