コード例 #1
0
ファイル: JoinTest.php プロジェクト: RafalFilipek/Propel2
 protected function setUp()
 {
     Propel::init(dirname(__FILE__) . '/../../../../Fixtures/bookstore/build/conf/bookstore-conf.php');
     parent::setUp();
     $this->savedAdapter = Propel::getDB(null);
     Propel::setDB(null, new DBSQLite());
 }
コード例 #2
0
ファイル: JoinTest.php プロジェクト: disider/Propel2
 protected function setUp()
 {
     Propel::init(dirname(__FILE__) . '/../../../../Fixtures/bookstore/build/conf/bookstore-conf.php');
     parent::setUp();
     $this->savedAdapter = Propel::getServiceContainer()->getAdapter(null);
     Propel::getServiceContainer()->setAdapter(null, new SqliteAdapter());
 }
コード例 #3
0
 protected function setUp()
 {
     Propel::init(__DIR__ . '/../../../../Fixtures/bookstore/build/conf/bookstore-conf.php');
     parent::setUp();
     $this->c = new Criteria();
     $this->savedAdapter = Propel::getDB(null);
     Propel::setDB(null, new DBSQLite());
 }
コード例 #4
0
 protected function setUp()
 {
     Propel::init(__DIR__ . '/../../../../Fixtures/bookstore/build/conf/bookstore-conf.php');
     parent::setUp();
     $this->c = new Criteria();
     $defaultDatasource = Propel::getServiceContainer()->getDefaultDatasource();
     $this->savedAdapter = Propel::getServiceContainer()->getAdapter($defaultDatasource);
     Propel::getServiceContainer()->setAdapter($defaultDatasource, new SqliteAdapter());
 }