1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/manual/codes/Basic Components - Connection - Getting a table object.php

12 lines
223 B
PHP
Raw Normal View History

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