@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Dontdrinkandroot\Service; |
4 | 4 | |
5 | -use Dontdrinkandroot\Entity\UuidHelper; |
|
6 | 5 | use Dontdrinkandroot\Repository\CrudRepositoryInterface; |
7 | 6 | use Dontdrinkandroot\Repository\UuidCrudRepositoryInterface; |
8 | 7 | use Dontdrinkandroot\Utils\EntityUtils; |
@@ -14,12 +14,24 @@ discard block |
||
14 | 14 | |
15 | 15 | public function merge(object $entity, bool $flush = false): object; |
16 | 16 | |
17 | + /** |
|
18 | + * @return void |
|
19 | + */ |
|
17 | 20 | public function flush(object $entity = null): void; |
18 | 21 | |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
19 | 25 | public function detach(object $entity): void; |
20 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
21 | 30 | public function removeById($id, bool $flush = false): void; |
22 | 31 | |
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
23 | 35 | public function remove(object $entity, bool $flush = false); |
24 | 36 | |
25 | 37 | /** |
@@ -27,6 +39,7 @@ discard block |
||
27 | 39 | * |
28 | 40 | * @param bool $flush |
29 | 41 | * @param bool $iterate Iterate over each entity so all triggers are called. |
42 | + * @return void |
|
30 | 43 | */ |
31 | 44 | public function removeAll(bool $flush = false, bool $iterate = true); |
32 | 45 |
@@ -16,6 +16,9 @@ |
||
16 | 16 | return $query->getOneOrNullResult(); |
17 | 17 | } |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $uuid |
|
21 | + */ |
|
19 | 22 | protected function createFindByUuidQuery($uuid): Query |
20 | 23 | { |
21 | 24 | $queryBuilder = $this->createQueryBuilder('entity'); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Dontdrinkandroot\Utils; |
4 | 4 | |
5 | 5 | use Dontdrinkandroot\Entity\EntityInterface; |
6 | -use Dontdrinkandroot\Entity\UuidHelper; |
|
7 | 6 | use Ramsey\Uuid\Uuid; |
8 | 7 | |
9 | 8 | /** |