Symfony 2 and 3 bundle for rendering a collection of entities as an expanded selectable list. Include some usefull form types extending the native entity form field, so all entity options could by used (like query_builder), except expanded and multiple, since all the bundle types are based in those options setted to true. Read more about entity type field.
Features
- Be able to configure wich entity properties or get method should be rendered and how.
- Render a collection of entities as an expanded checkbox list.
- Handling ManyToMany related collection as an expanded checkbox list.
- Support for bootstrap 3 symfony theme.
$ composer require abdielcs/expanded-collection-bundle
This command requires you to have Composer installed globally, as explained in the Composer documentation.
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new abdielcs\ExpandedCollectionBundle\ExpandedCollectionBundle(),
);
}
// ...
}
That's it!. Now you can start to use it.
This software is published under the MIT License