1
0
mirror of synced 2025-01-18 22:41:43 +03:00
doctrine2/manual/codes/Basic Components - Connection - Getting a table object.php

12 lines
223 B
PHP
Raw Normal View History

2006-07-23 21:08:06 +00:00
<?php
$manager = Doctrine_Manager::getInstance();
// open new connection
2006-07-23 21:08:06 +00:00
$conn = $manager->openConnection(new PDO("dsn","username","password"));
2006-07-23 21:08:06 +00:00
// getting a table object
$table = $conn->getTable("User");
2006-07-23 21:08:06 +00:00
?>