These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /* |
||
3 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||
4 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||
5 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||
6 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||
7 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||
8 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||
9 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||
10 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||
11 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||
12 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||
13 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
14 | * |
||
15 | * This software consists of voluntary contributions made by many individuals |
||
16 | * and is licensed under the MIT license. For more information, see |
||
17 | * <http://www.doctrine-project.org>. |
||
18 | */ |
||
19 | |||
20 | namespace Doctrine\ORM\Decorator; |
||
21 | |||
22 | use Doctrine\ORM\Query\ResultSetMapping; |
||
23 | use Doctrine\ORM\EntityManagerInterface; |
||
24 | use Doctrine\Common\Persistence\ObjectManagerDecorator; |
||
25 | |||
26 | /** |
||
27 | * Base class for EntityManager decorators |
||
28 | * |
||
29 | * @since 2.4 |
||
30 | * @author Lars Strojny <[email protected] |
||
31 | */ |
||
32 | abstract class EntityManagerDecorator extends ObjectManagerDecorator implements EntityManagerInterface |
||
33 | { |
||
34 | /** |
||
35 | * @var EntityManagerInterface |
||
36 | */ |
||
37 | protected $wrapped; |
||
38 | |||
39 | /** |
||
40 | * @param EntityManagerInterface $wrapped |
||
41 | */ |
||
42 | 40 | public function __construct(EntityManagerInterface $wrapped) |
|
43 | { |
||
44 | 40 | $this->wrapped = $wrapped; |
|
45 | 40 | } |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 1 | public function getConnection() |
|
51 | { |
||
52 | 1 | return $this->wrapped->getConnection(); |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 1 | public function getExpressionBuilder() |
|
59 | { |
||
60 | 1 | return $this->wrapped->getExpressionBuilder(); |
|
61 | } |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 1 | public function beginTransaction() |
|
67 | { |
||
68 | 1 | return $this->wrapped->beginTransaction(); |
|
69 | } |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | 1 | public function transactional($func) |
|
75 | { |
||
76 | 1 | return $this->wrapped->transactional($func); |
|
77 | } |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | 1 | public function commit() |
|
83 | { |
||
84 | 1 | return $this->wrapped->commit(); |
|
85 | } |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | 1 | public function rollback() |
|
91 | { |
||
92 | 1 | return $this->wrapped->rollback(); |
|
93 | } |
||
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | 1 | public function createQuery($dql = '') |
|
99 | { |
||
100 | 1 | return $this->wrapped->createQuery($dql); |
|
101 | } |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | 1 | public function createNamedQuery($name) |
|
107 | { |
||
108 | 1 | return $this->wrapped->createNamedQuery($name); |
|
109 | } |
||
110 | |||
111 | /** |
||
112 | * {@inheritdoc} |
||
113 | */ |
||
114 | 1 | public function createNativeQuery($sql, ResultSetMapping $rsm) |
|
115 | { |
||
116 | 1 | return $this->wrapped->createNativeQuery($sql, $rsm); |
|
117 | } |
||
118 | |||
119 | /** |
||
120 | * {@inheritdoc} |
||
121 | */ |
||
122 | 1 | public function createNamedNativeQuery($name) |
|
123 | { |
||
124 | 1 | return $this->wrapped->createNamedNativeQuery($name); |
|
125 | } |
||
126 | |||
127 | /** |
||
128 | * {@inheritdoc} |
||
129 | */ |
||
130 | 1 | public function createQueryBuilder() |
|
131 | { |
||
132 | 1 | return $this->wrapped->createQueryBuilder(); |
|
133 | } |
||
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | 1 | public function getReference($entityName, $id) |
|
139 | { |
||
140 | 1 | return $this->wrapped->getReference($entityName, $id); |
|
141 | } |
||
142 | |||
143 | /** |
||
144 | * {@inheritdoc} |
||
145 | */ |
||
146 | 1 | public function getPartialReference($entityName, $identifier) |
|
147 | { |
||
148 | 1 | return $this->wrapped->getPartialReference($entityName, $identifier); |
|
149 | } |
||
150 | |||
151 | /** |
||
152 | * {@inheritdoc} |
||
153 | */ |
||
154 | 1 | public function close() |
|
155 | { |
||
156 | 1 | return $this->wrapped->close(); |
|
157 | } |
||
158 | |||
159 | /** |
||
160 | * {@inheritdoc} |
||
161 | */ |
||
162 | 1 | public function copy($entity, $deep = false) |
|
163 | { |
||
164 | 1 | return $this->wrapped->copy($entity, $deep); |
|
165 | } |
||
166 | |||
167 | /** |
||
168 | * {@inheritdoc} |
||
169 | */ |
||
170 | 1 | public function lock($entity, $lockMode, $lockVersion = null) |
|
171 | { |
||
172 | 1 | return $this->wrapped->lock($entity, $lockMode, $lockVersion); |
|
173 | } |
||
174 | |||
175 | /** |
||
176 | * {@inheritdoc} |
||
177 | */ |
||
178 | 1 | public function find($entityName, $id, $lockMode = null, $lockVersion = null) |
|
179 | { |
||
180 | 1 | return $this->wrapped->find($entityName, $id, $lockMode, $lockVersion); |
|
181 | } |
||
182 | |||
183 | /** |
||
184 | * {@inheritdoc} |
||
185 | */ |
||
186 | 1 | public function flush($entity = null) |
|
187 | { |
||
188 | 1 | return $this->wrapped->flush($entity); |
|
189 | } |
||
190 | |||
191 | /** |
||
192 | * {@inheritdoc} |
||
193 | */ |
||
194 | 1 | public function getEventManager() |
|
195 | { |
||
196 | 1 | return $this->wrapped->getEventManager(); |
|
197 | } |
||
198 | |||
199 | /** |
||
200 | * {@inheritdoc} |
||
201 | */ |
||
202 | 1 | public function getConfiguration() |
|
203 | { |
||
204 | 1 | return $this->wrapped->getConfiguration(); |
|
205 | } |
||
206 | |||
207 | /** |
||
208 | * {@inheritdoc} |
||
209 | */ |
||
210 | 1 | public function isOpen() |
|
211 | { |
||
212 | 1 | return $this->wrapped->isOpen(); |
|
213 | } |
||
214 | |||
215 | /** |
||
216 | * {@inheritdoc} |
||
217 | */ |
||
218 | 1 | public function getUnitOfWork() |
|
219 | { |
||
220 | 1 | return $this->wrapped->getUnitOfWork(); |
|
221 | } |
||
222 | |||
223 | /** |
||
224 | * {@inheritdoc} |
||
225 | */ |
||
226 | 1 | public function getHydrator($hydrationMode) |
|
227 | { |
||
228 | 1 | return $this->wrapped->getHydrator($hydrationMode); |
|
0 ignored issues
–
show
|
|||
229 | } |
||
230 | |||
231 | /** |
||
232 | * {@inheritdoc} |
||
233 | */ |
||
234 | 1 | public function newHydrator($hydrationMode) |
|
235 | { |
||
236 | 1 | return $this->wrapped->newHydrator($hydrationMode); |
|
237 | } |
||
238 | |||
239 | /** |
||
240 | * {@inheritdoc} |
||
241 | */ |
||
242 | 1 | public function getProxyFactory() |
|
243 | { |
||
244 | 1 | return $this->wrapped->getProxyFactory(); |
|
245 | } |
||
246 | |||
247 | /** |
||
248 | * {@inheritdoc} |
||
249 | */ |
||
250 | 1 | public function getFilters() |
|
251 | { |
||
252 | 1 | return $this->wrapped->getFilters(); |
|
253 | } |
||
254 | |||
255 | /** |
||
256 | * {@inheritdoc} |
||
257 | */ |
||
258 | 1 | public function isFiltersStateClean() |
|
259 | { |
||
260 | 1 | return $this->wrapped->isFiltersStateClean(); |
|
261 | } |
||
262 | |||
263 | /** |
||
264 | * {@inheritdoc} |
||
265 | */ |
||
266 | 1 | public function hasFilters() |
|
267 | { |
||
268 | 1 | return $this->wrapped->hasFilters(); |
|
269 | } |
||
270 | |||
271 | /** |
||
272 | * {@inheritdoc} |
||
273 | */ |
||
274 | 1 | public function getCache() |
|
275 | { |
||
276 | 1 | return $this->wrapped->getCache(); |
|
277 | } |
||
278 | } |
||
279 |
This method has been deprecated.