1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the Hautelook\AliceBundle package. |
5
|
|
|
* |
6
|
|
|
* (c) Baldur Rensch <[email protected]> |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace Hautelook\AliceBundle\Persistence; |
13
|
|
|
|
14
|
|
|
use Doctrine\Common\Persistence\ManagerRegistry; |
15
|
|
|
use Hautelook\AliceBundle\NotCallableTrait; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @author Théo FIDRY <[email protected]> |
19
|
|
|
*/ |
20
|
|
|
class FakeDoctrineManagerRegistry implements ManagerRegistry |
21
|
|
|
{ |
22
|
|
|
use NotCallableTrait; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @inheritdoc |
26
|
|
|
*/ |
27
|
|
|
public function getDefaultConnectionName() |
28
|
|
|
{ |
29
|
|
|
$this->__call(__METHOD__, func_get_args()); |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @inheritdoc |
34
|
|
|
*/ |
35
|
|
|
public function getConnection($name = null) |
36
|
|
|
{ |
37
|
|
|
$this->__call(__METHOD__, func_get_args()); |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @inheritdoc |
42
|
|
|
*/ |
43
|
|
|
public function getConnections() |
44
|
|
|
{ |
45
|
|
|
$this->__call(__METHOD__, func_get_args()); |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @inheritdoc |
50
|
|
|
*/ |
51
|
|
|
public function getConnectionNames() |
52
|
|
|
{ |
53
|
|
|
$this->__call(__METHOD__, func_get_args()); |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @inheritdoc |
58
|
|
|
*/ |
59
|
|
|
public function getDefaultManagerName() |
60
|
|
|
{ |
61
|
|
|
$this->__call(__METHOD__, func_get_args()); |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @inheritdoc |
66
|
|
|
*/ |
67
|
|
|
public function getManager($name = null) |
68
|
|
|
{ |
69
|
|
|
$this->__call(__METHOD__, func_get_args()); |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @inheritdoc |
74
|
|
|
*/ |
75
|
|
|
public function getManagers() |
76
|
|
|
{ |
77
|
|
|
$this->__call(__METHOD__, func_get_args()); |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @inheritdoc |
82
|
|
|
*/ |
83
|
|
|
public function resetManager($name = null) |
84
|
|
|
{ |
85
|
|
|
$this->__call(__METHOD__, func_get_args()); |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @inheritdoc |
90
|
|
|
*/ |
91
|
|
|
public function getAliasNamespace($alias) |
92
|
|
|
{ |
93
|
|
|
$this->__call(__METHOD__, func_get_args()); |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @inheritdoc |
98
|
|
|
*/ |
99
|
|
|
public function getManagerNames() |
100
|
|
|
{ |
101
|
|
|
$this->__call(__METHOD__, func_get_args()); |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @inheritdoc |
106
|
|
|
*/ |
107
|
|
|
public function getRepository($persistentObject, $persistentManagerName = null) |
108
|
|
|
{ |
109
|
|
|
$this->__call(__METHOD__, func_get_args()); |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @inheritdoc |
114
|
|
|
*/ |
115
|
|
|
public function getManagerForClass($class) |
116
|
|
|
{ |
117
|
|
|
$this->__call(__METHOD__, func_get_args()); |
118
|
|
|
} |
119
|
|
|
} |
120
|
|
|
|