@@ -52,6 +52,8 @@ public function __construct(ContainerInterface $container, array $connections, a
52
52
*/
53
53
public function getDefaultEntityManagerName ()
54
54
{
55
+ trigger_error ('getDefaultEntityManagerName is deprecated since Symfony 2.1. Use getDefaultManagerName instead ' , E_USER_DEPRECATED );
56
+
55
57
return $ this ->getDefaultManagerName ();
56
58
}
57
59
@@ -66,6 +68,8 @@ public function getDefaultEntityManagerName()
66
68
*/
67
69
public function getEntityManager ($ name = null )
68
70
{
71
+ trigger_error ('getEntityManager is deprecated since Symfony 2.1. Use getManager instead ' , E_USER_DEPRECATED );
72
+
69
73
return $ this ->getManager ($ name );
70
74
}
71
75
@@ -78,6 +82,8 @@ public function getEntityManager($name = null)
78
82
*/
79
83
public function getEntityManagers ()
80
84
{
85
+ trigger_error ('getEntityManagers is deprecated since Symfony 2.1. Use getManagers instead ' , E_USER_DEPRECATED );
86
+
81
87
return $ this ->getManagers ();
82
88
}
83
89
@@ -100,6 +106,8 @@ public function getEntityManagers()
100
106
*/
101
107
public function resetEntityManager ($ name = null )
102
108
{
109
+ trigger_error ('resetEntityManager is deprecated since Symfony 2.1. Use resetManager instead ' , E_USER_DEPRECATED );
110
+
103
111
$ this ->resetManager ($ name );
104
112
}
105
113
@@ -114,6 +122,8 @@ public function resetEntityManager($name = null)
114
122
*/
115
123
public function getEntityNamespace ($ alias )
116
124
{
125
+ trigger_error ('getEntityNamespace is deprecated since Symfony 2.1. Use getAliasNamespace instead ' , E_USER_DEPRECATED );
126
+
117
127
return $ this ->getAliasNamespace ($ alias );
118
128
}
119
129
@@ -147,6 +157,8 @@ public function getAliasNamespace($alias)
147
157
*/
148
158
public function getEntityManagerNames ()
149
159
{
160
+ trigger_error ('getEntityManagerNames is deprecated since Symfony 2.1. Use getManagerNames instead ' , E_USER_DEPRECATED );
161
+
150
162
return $ this ->getManagerNames ();
151
163
}
152
164
@@ -159,6 +171,8 @@ public function getEntityManagerNames()
159
171
*/
160
172
public function getEntityManagerForClass ($ class )
161
173
{
174
+ trigger_error ('getEntityManagerForClass is deprecated since Symfony 2.1. Use getManagerForClass instead ' , E_USER_DEPRECATED );
175
+
162
176
return $ this ->getManagerForClass ($ class );
163
177
}
164
178
}
0 commit comments