Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Duplication | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
getModelClass | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * This file is part of the MADIS - RGPD Management application. |
5 | * |
6 | * @copyright Copyright (c) 2018-2019 Soluris - Solutions Numériques Territoriales Innovantes |
7 | * |
8 | * This program is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU Affero General Public License as published by |
10 | * the Free Software Foundation, either version 3 of the License, or |
11 | * (at your option) any later version. |
12 | * |
13 | * This program is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | * GNU Affero General Public License for more details. |
17 | * |
18 | * You should have received a copy of the GNU Affero General Public License |
19 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
20 | */ |
21 | |
22 | declare(strict_types=1); |
23 | |
24 | namespace App\Infrastructure\ORM\Admin\Repository; |
25 | |
26 | use App\Application\Doctrine\Repository\CRUDRepository; |
27 | use App\Domain\Admin\Model; |
28 | use App\Domain\Admin\Repository; |
29 | |
30 | class Duplication extends CRUDRepository implements Repository\Duplication |
31 | { |
32 | protected function getModelClass(): string |
33 | { |
34 | return Model\Duplication::class; |
35 | } |
36 | |
37 | // /** |
38 | // * Get an object by ID. |
39 | // * |
40 | // * @param string $id The ID to find |
41 | // * |
42 | // * @return object|null |
43 | // */ |
44 | // public function findOneById(string $id) |
45 | // { |
46 | // $qb = $this->createQueryBuilder(); |
47 | // $qb |
48 | // ->andWhere("o.id = :id") |
49 | // ->setParameter('id', $id) |
50 | // ->leftJoin("") |
51 | // ; |
52 | // dump($id); |
53 | // return $this->registry |
54 | // ->getManager() |
55 | // ->getRepository($this->getModelClass()) |
56 | // ->find($id) |
57 | // -> |
58 | // ; |
59 | // |
60 | // |
61 | // $qb = $this->createQueryBuilder(); |
62 | // |
63 | // foreach ($criteria as $key => $value) { |
64 | // $this->addWhereClause($qb, $key, $value); |
65 | // } |
66 | // |
67 | // return $qb |
68 | // ->getQuery() |
69 | // ->getResult() |
70 | // ; |
71 | // } |
72 | } |