1 | <?php |
||
13 | class TransactionalCrudRepository extends CrudRepository |
||
|
|||
14 | { |
||
15 | /** @var TransactionManager */ |
||
16 | private $transactionManager; |
||
17 | |||
18 | 16 | public function __construct( |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 2 | public function find($id, $lockMode = null, $lockVersion = null) |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 2 | public function findAll() |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 2 | public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null) |
|
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | public function findOneBy(array $criteria, array $orderBy = null) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | 2 | public function persist(object $entity, bool $flush = true): object |
|
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | public function merge(object $entity, $flush = false): object |
||
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | 6 | public function remove(object $entity, bool $flush = false): void |
|
119 | |||
120 | /** |
||
121 | * {@inheritdoc} |
||
122 | */ |
||
123 | 2 | public function removeById($id, bool $flush = false): void |
|
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | public function count(array $criteria) |
||
146 | |||
147 | /** |
||
148 | * {@inheritdoc} |
||
149 | */ |
||
150 | public function matching(Criteria $criteria) |
||
158 | |||
159 | /** |
||
160 | * {@inheritdoc} |
||
161 | */ |
||
162 | 4 | public function removeAll(bool $flush = false, bool $iterate = true): void |
|
171 | |||
172 | /** |
||
173 | * {@inheritdoc} |
||
174 | */ |
||
175 | 2 | public function findPaginatedBy( |
|
187 | |||
188 | /** |
||
189 | * {@inheritdoc} |
||
190 | */ |
||
191 | 6 | public function countAll(): int |
|
199 | |||
200 | 6 | public function getTransactionManager(): TransactionManager |
|
204 | |||
205 | public function setTransactionManager(TransactionManager $transactionManager): void |
||
209 | } |
||
210 |