コード例 #1
0
 protected function setUp()
 {
     parent::setUp();
     $rmdFactory = $this->getResourceMetadataFactory();
     $resourceMetadata = $rmdFactory->getMetadataByResourceName('asset');
     $mapper = new Mapper();
     $mapper->setEntityManager(self::getEntityManager());
     $this->service = new DoctrineService($resourceMetadata, $mapper);
     $this->service->setEntityManager(self::getEntityManager());
 }
コード例 #2
0
ファイル: MapperTest.php プロジェクト: bedrest/model-doctrine
 /**
  * Bootstrapping set up phase for each test.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->mapper = new Mapper();
     $this->mapper->setEntityManager(self::getEntityManager());
 }