File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
src/Symfony/Cmf/Component/Testing/Functional/DbManager Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Changelog
4
4
1.1.0-RC2
5
5
---------
6
6
7
+ * ** 2014-06-11** : fetch manager by its name
7
8
* ** 2014-04-24** : [ DEPRECATE] Deprecated the ` sonata_admin ` bundle set
8
9
* ** 2014-04-24** : added bundle sets: ` sonata_admin_orm ` and ` sonata_admin_phpcr `
9
10
* ** 2014-04-11** : dropped Symfony 2.2 compatibility
Original file line number Diff line number Diff line change @@ -59,12 +59,13 @@ public function getRegistry()
59
59
/**
60
60
* Gets the Doctrine ObjectManager
61
61
*
62
+ * @param null $managerName
62
63
* @return ObjectManager
63
64
*/
64
- public function getOm ()
65
+ public function getOm ($ managerName = null )
65
66
{
66
67
if (!$ this ->om ) {
67
- $ this ->om = $ this ->getRegistry ()->getManager ();
68
+ $ this ->om = $ this ->getRegistry ()->getManager ($ managerName );
68
69
}
69
70
70
71
return $ this ->om ;
Original file line number Diff line number Diff line change @@ -35,10 +35,14 @@ public function getRegistry()
35
35
return $ this ->container ->get ('doctrine_phpcr ' );
36
36
}
37
37
38
- public function getOm ()
38
+ /**
39
+ * @param null|string $managerName
40
+ * @return DocumentManager
41
+ */
42
+ public function getOm ($ managerName = null )
39
43
{
40
44
if (!$ this ->om ) {
41
- $ this ->om = $ this ->getRegistry ()->getManager ();
45
+ $ this ->om = $ this ->getRegistry ()->getManager ($ managerName );
42
46
}
43
47
44
48
return $ this ->om ;
You can’t perform that action at this time.
0 commit comments