-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathQueryBuilderGeneratedInterface.php
More file actions
41 lines (34 loc) · 986 Bytes
/
QueryBuilderGeneratedInterface.php
File metadata and controls
41 lines (34 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace Tbn\QueryBuilderRepositoryGeneratorBundle\Interface;
use Doctrine\ORM\QueryBuilder;
interface QueryBuilderGeneratedInterface
{
public function findOne(
mixed $id,
bool $useQueryCache = false,
?string $cacheId = null,
array $resultCacheTags = [],
): object;
public static function filterIn(
QueryBuilder $qb,
string $columnName,
string $operator,
array $values,
?string $entityName = null,
): QueryBuilder;
public static function filterBy(
QueryBuilder $qb,
string $columnName,
string $operator,
mixed $value,
?string $entityName = null,
): QueryBuilder;
public function getNewQueryBuilder(): QueryBuilder;
public function getQueryBuilderCount(
QueryBuilder $qb,
string $entityName,
bool $useQueryCache = false,
?string $cacheId = null,
array $resultCacheTags = [],
): int;
}