Download the PHP package padam87/search-bundle without Composer
On this page you can find all versions of the php package padam87/search-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download padam87/search-bundle
More information about padam87/search-bundle
Files in padam87/search-bundle
Package search-bundle
Short Description Symfony2 SearchBundle
License MIT
Homepage https://github.com/Padam87/SearchBundle
Informations about the package search-bundle
Search Bundle
Search bundle for Symfony2. Use entities, collections for search directly. Great for handling complex search forms.
1. Examples
1.1 Simple
can be an array, an entity, or even a doctrine collection.
You can add your own converter to handle any type of data.
1.2 Joins
is the name of the relation in your entity, eg 'users'
1.3 Collection valued associations
When is an entity, it can have *ToMany associations. By default, the bundle assumes OR relationship between the elements of the collection. To change that, you can use the 2nd parameter of :
1.4 Operators
The bundle will search for operators in the field names and values, and use the appropriate Expr.
For a nicer, and entity-compatible solution you can use the 4th parameter of the Filter to set default operators:
2. Installation
2.1. Composer
"padam87/search-bundle": "2.0.*",
2.2. AppKernel
$bundles = array(
...
new Padam87\SearchBundle\Padam87SearchBundle(),
);
All versions of search-bundle with dependencies
symfony/symfony Version >2.1.0
doctrine/orm Version *
doctrine/doctrine-bundle Version *