This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
kurs:doctrine_oracle_beipspiel [2012/01/19 11:19] mh |
kurs:doctrine_oracle_beipspiel [2012/01/19 11:38] mh |
||
---|---|---|---|
Line 60: | Line 60: | ||
// database configuration parameters | // database configuration parameters | ||
$conn = array( | $conn = array( | ||
- | 'driver' => 'pdo_pgsql', | + | 'dbname' => 'orcl', |
- | 'host' => 'localhost', | + | 'user' => 'hr', |
- | 'port' => '5432', | + | 'password' => 'hr', |
- | 'dbname' => 'doctrine', | + | 'host' => 'localhost', |
- | 'user' => 'dd', | + | 'driver' => 'oci8', |
- | 'password' => 'dd', | + | |
); | ); | ||
// obtaining the entity manager | // obtaining the entity manager | ||
$entityManager = \Doctrine\ORM\EntityManager::create($conn, $config); | $entityManager = \Doctrine\ORM\EntityManager::create($conn, $config); | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | <?php | ||
+ | // bootstrap.php | ||
+ | |||
+ | require_once "entities/Test.php"; | ||
+ | |||
+ | if (!class_exists("Doctrine\Common\Version", false)) { | ||
+ | require_once "bootstrap_doctrine.php"; | ||
+ | } | ||
</code> | </code> |