baldeweg/book-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Offers tools for management of books.

Installs: 203

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.4.0 2022-03-10 11:45 UTC

This package is auto-updated.

Last update: 2022-03-26 11:39:43 UTC


README

Offers tools for management of books.

Getting Started

composer req baldeweg/book-bundle

Activate the bundle in your config/bundles.php, if not done automatically.

Baldeweg\Bundle\BookBundle\BaldewegBookBundle::class => ['all' => true],

Building a new query.

use Baldeweg\Bundle\BookBundle\Search\Find;

$find = new Find($em, $term, $filter, $orderBy);
$find->setFields([]);
$find->setForcedFilters([]);
$find->find();

Options

Query

  • term - string , Operator: like
  • filter - array<filter>
  • orderBy - array
    • book - array<order>
    • author - array<order>
  • limit - integer
  • offset - integer

Filter

  • genre - array<integer>, Operator: in
  • lendOn - integer, Operators: eq, gte, gt, lte, lt, null
  • branches - integer, Operator: eq
  • releaseYear - integer, Operator: eq, gte, gt, lte, lt, null
  • sold - bool, Operator: eq
  • removed - bool, Operator: eq
  • type - string, Operator: eq
  • added - integer, Operator: eq, gte, gt, lte, lt, null

Order

  • field - string
  • direction - string