add bills and vendors
This commit is contained in:
parent
aba30587cd
commit
167d1fd5da
42 changed files with 51694 additions and 1 deletions
25
src/Repository/BillRepositoryQuery.php
Normal file
25
src/Repository/BillRepositoryQuery.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Core\Repository\RepositoryQuery;
|
||||
use App\Repository\BillRepository as Repository;
|
||||
use Knp\Component\Pager\PaginatorInterface;
|
||||
|
||||
class BillRepositoryQuery extends RepositoryQuery
|
||||
{
|
||||
public function __construct(Repository $repository, PaginatorInterface $paginator)
|
||||
{
|
||||
parent::__construct($repository, 'b', $paginator);
|
||||
}
|
||||
|
||||
protected function filterHandler(string $name, $value)
|
||||
{
|
||||
if ('vendor' === $name && null !== $value) {
|
||||
$this
|
||||
->where('.vendor = :vendor')
|
||||
->setParameter('vendor', $value)
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue