File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ * ** 2014-06-16** : Initializer for phpcr fixture loading
4
5
* ** 2014-06-06** : Updated to PSR-4 autoloading
5
6
6
7
1.1.0-RC2
Original file line number Diff line number Diff line change 12
12
13
13
namespace Symfony \Cmf \Component \Testing \Functional \DbManager ;
14
14
15
+ use Doctrine \Bundle \PHPCRBundle \DataFixtures \PHPCRExecutor ;
15
16
use Doctrine \Common \DataFixtures \Purger \PHPCRPurger ;
16
- use Doctrine \Common \DataFixtures \Executor \PHPCRExecutor ;
17
17
use Symfony \Bridge \Doctrine \DataFixtures \ContainerAwareLoader ;
18
18
use Doctrine \Common \DataFixtures \DependentFixtureInterface ;
19
19
use Doctrine \ODM \PHPCR \DocumentManager ;
@@ -48,11 +48,13 @@ public function getOm($managerName = null)
48
48
return $ this ->om ;
49
49
}
50
50
51
- public function loadFixtures (array $ classNames )
51
+ public function loadFixtures (array $ classNames, $ initialize = false )
52
52
{
53
+ $ initializerManager = $ initialize ? $ this ->container ->get ('doctrine_phpcr.initializer_manager ' ) : null ;
54
+
53
55
$ loader = new ContainerAwareLoader ($ this ->container );;
54
56
$ purger = new PHPCRPurger ();
55
- $ executor = new PHPCRExecutor ($ this ->getOm (), $ purger );
57
+ $ executor = new PHPCRExecutor ($ this ->getOm (), $ purger, $ initializerManager );
56
58
57
59
$ referenceRepository = new ProxyReferenceRepository ($ this ->getOm ());
58
60
You can’t perform that action at this time.
0 commit comments