1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/manual/codes/Working with objects - Component overview - Connection - Getting a table object.php
2007-02-23 20:57:38 +00:00

12 lines
223 B
PHP

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