1 | <?php |
||
12 | class TransactionalCrudRepository extends CrudRepository |
||
13 | { |
||
14 | /** |
||
15 | * @var TransactionManager |
||
16 | */ |
||
17 | private $transactionManager; |
||
18 | |||
19 | 16 | public function __construct( |
|
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 2 | public function persist(object $entity, bool $flush = true): object |
|
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function merge(object $entity, $flush = false): object |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | 6 | public function remove(object $entity, bool $flush = false): void |
|
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | 2 | public function removeById($id, bool $flush = false): void |
|
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | 4 | public function removeAll(bool $flush = false, bool $iterate = true): void |
|
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | 2 | public function findPaginatedBy( |
|
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | 6 | public function countAll(): int |
|
119 | |||
120 | 6 | public function getTransactionManager(): TransactionManager |
|
124 | |||
125 | public function setTransactionManager(TransactionManager $transactionManager): void |
||
129 | } |
||
130 |